In Dreamweaver how can I make a thickbox image bigger on my screen when I preview it in a browser. It seems to be a fixed size and I want it to fill the the screen. I thought making the link image bigger would solve this but that does not work when I preview it in firefox or safari. Can I change that in the css code or do I have to change something else?
Thickbox is based on the size of the image. I don't believe they ever added the functionality to give you this ability and as Thickbox has not been actively developed in about 3 years, I doubt it will be added. And you should not enalrge image too much because you will end up causing pixelation and distortion.
There are other solutions like Fancybox that give you this option and they have the documentation to tell you how to edit your code for a larger pop-up window surrounding a smaller image.
I have tried the tutorials I cant get the script to reference my picture links.
Here is link to my scaled down test page:
http://www.davidjveres.com/indexFBTEST2.html
here is the full test page I want to apply fancybox to:
http://www.davidjveres.com/landscapes_srw_p3_5test5.html
I know the code is messed up but I cant figure out where to put the right code. It is not referencing the script. How do I debug it and get it working?
Thanks,
Thickbox is no longer being developed.
I am using FancyBox on this demo page. View source to see the code.
http://alt-web.com/GALLERY/Photo_Gallery.html
Don't forget to upload the jQuery scripts to your server. I keep the jQuery plugins in a folder called Scripts.
The link paths and function code looks like this and it's inserted between the document's <head> and </head> tags:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="Scripts/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<!--Calls Slideshow Transitions -->
<script type="text/javascript">
$(document).ready(function() {
$("a[rel=group]").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 400,
'speedOut' : 600,
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
}
});
});
</script>
The code for images looks like this and is inserted between the <body> and </body> tags. I keep photos in a folder called Images.
<!--BEGIN IMAGE GALLERY -->
<div class="fancybox">
<a rel="group" href="Images/1_big.jpg" title="optional captions"><img src="Images/1_small.jpg" alt="image 1" width="75" height="75" border="0" /></a>
<a rel="group" href="Images/2_big.jpg" title="optional captions"><img src="Images/2_small.jpg" alt="image 2" width="75" height="75" border="0" /></a>
<a rel="group" href="Images/3_big.jpg" title="optional captions "><img src="Images/3_small.jpg" alt="image 3" width="75" height="75" border="0" /></a>
<!--END IMAGE GALLERY --> </div>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
Path problem. Here is where your code is telling the page to look for fancybox.js but it's not there.
http://www.davidjveres.com/source/jquery.fancybox.js
Look on your remote site and tell us which folder(s) your scripts are in.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
OK so your scripts are located in the scripts folder.
http://www.davidjveres.com/scripts/jquery.fancybox.js
Not the source folder
http://www.davidjveres.com/source/jquery.fancybox.js
Open your page in code view and change source to scripts. Got it?
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
You're making progress. But these files are still missing.
<script type="text/javascript" src="Scripts/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="Scripts/jquery.fancybox-1.3.4.css" media="screen" />
Click on your Scripts folder in the DW files panel. Click on the UP ARROW.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
I changed those script files to what I had
<script type="text/javascript" src="Scripts/jquery.fancybox.pack.js"></script>
<link rel="stylesheet" type="text/css" href="Scripts/jquery.fancybox.css" media="screen" />
it is still not working.
I wonder if this helps.
I have rebuilt your page and added fancybox on my test site.
It is very different to your pages but it gets the lightbox gallery going.
I have laid out the thumbnails all the same size, It means that they are poor quality now but this for me is much neater that trying to juggle very different sized image in a thumb gallery. I think that is OK because it is a kind of teaser but that's me.
Anway, I'm not always at the computer but if you want to post some questions about it, please do.
Martin
martcol.co.uk/test/artist.html
If you are interested, I did an artist's site a few years ago and it's riddled with lightbox galleries. It's very regular which suited me and the him.
andrewjamesartist.co.uk
There are a lot of images there so I think it lends itself to using uniform size on the galleries. Your images were are all very different ratios. I can see that staying true to that might have a more orgnic feel but as I say, I think a thumbnail gallery looks neater with cropped thumbs to the same size.
Horses for courses.
Martin
I am starting to get the hang of this. I was wondering though, on that page : martcol.co.uk/test/artist.html, did you hand code it or did you do it in the css?
How did you set up the properties for each <div class="galleryThumb">, was it around line 179 or futher down from line 275 down?
Did you do this in dreamweaver? or another program?
Did you hand code that too or did you do it in the css?
I would have hand-coded it in Dreamweaver with a fair amount of cutting and pasting.
kbwalkes wrote:
How did you set up the properties for each <div class="galleryThumb">, was it around line 179 or futher down from line 275 down?
I don't really understand that question. My approach to the high-tech world of precision coding is erm... trial and error or, the Tweak and Test model. That's how I do it. the actual structure of the thumbnail gallery is relatively easy. The difficult part for me in every lightbox gallery I have implemented is the image tag with it's alt text and title attribute.
Martin
North America
Europe, Middle East and Africa
Asia Pacific