I'm not the author of this script. And I'm not personally inclined at the moment to help you directly with your request.
However, it might be helpful for you to realize, in case you didn't know, that the script already does that, sort of.
If you set the width to the width of the widest image, and set the height to the height of the tallest image, it will center all the images. Set the width and height here:
Code:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
["http://i29.tinypic.c . . .
With that knowledge, you should be able to set up your own 'crop box' around the slide show. Say your show's wrapperid is fadeshow1 and its dimensions accordingly, to show all of each image centered as described above would work out to 600x600. Then you could have like:
Code:
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [600, 600], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."],
["http://i29.tinypic.c . . .
and:
HTML Code:
<div style="width: 300px; height: 300px; overflow: hidden;">
<div style="width: 600px; height: 600px; margin: -150px 0 0 -150px;">
<div id="fadeshow1"></div>
</div>
</div>
Bookmarks