You are referring to this selector, I assume (from step 2):
Code:
.slideshow img{ /*CSS for each image tag*/
border: 0;
width: 200px;
height: 106px;
}
It uses a fixed width and height for all images in the album, which is fine if all of your 'album' images are the same width and height (generally a good idea). However, if they are not, it is then best to take advantage of the script's ability to show separate thumbnails and full sized versions of the images (from step 3, comments green):
Code:
//By default, each image hyperlinks to itself.
//However, if you wish them to link to larger versions of themselves
//Specify the directory in which the larger images are located
//The file names of these large images should mirror those of the original
//Enter a blank string ("") to disable this option
var targetlinkdir="http://www.mysite.com/largegallery/"
If you do that, then your thumbnails can all be small enough to fit within a box of whatever dimensions that you would set with this selector (step 2 again, additions red):
Code:
.slideshow{ /*CSS for DIV containing each image*/
float: left;
margin-right: 10px;
margin-bottom: 10px;
width:250px;
height:250px;
}
Then leaving the dimensions of this selector out:
Code:
.slideshow img{ /*CSS for each image tag*/
border: 0;
}
will allow each thumbnail to display in its native dimensions.
Notes: I imagine the large and small versions of each image will need to have the same filenames, just be in different directories. Also, it would be a good idea to use this method anyway, even if there is no difference among the images dimensions as, smaller thumbnails will load more quickly.
Bookmarks