PDA

View Full Version : Preloaded slideshow image size not adjusting



dfaust
07-15-2008, 12:02 AM
1) Script Title: Preloaded slideshow by Jason Moon

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/index.html

3) Describe problem: I changed my image width/height attributes inside the <IMG> tag to the dimensions of the first image in my slideshow, as directed. It works but it applies that image size to all the images, distorting them since they are different sizes. My question is how do I make my images appear in their actual size?

And thank you in advance for helping me with this. :cool:

jscheuer1
07-15-2008, 04:29 AM
Warning: Please include a link to the DD script in question in your post.

I would recommend:

http://www.dynamicdrive.com/dynamicindex14/swissarmy/index.htm

which when properly configured can gracefully handle images of varying dimensions that will fit within the defined area for the slideshow, and will center them within that area.

However, just to be clear, it will not scale images that are larger than the area you define.

Other slide shows might be better for that, but you will basically be relying upon the browser to scale your images. The key in such a situation is to only define the width, or to only define the height. That way most browsers will scale the missing dimension for any given image to the one supplied for it.