PDA

View Full Version : Dynamic height of images in Ultimate Fade-in slideshow (v2.6)



cgehringer
08-14-2014, 05:15 AM
Script: Ultimate Fade-in slideshow (v2.6)
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

In 2.4 the fadeslideshow.js would dynamically set (or at least display) images based on the height from the first image in the array (ignoring whatever height was listed in dimensions:[]).

How can fadeslideshow.js be modified to do the same? I use the same script on several different sites, each which has different height photos that are fed into the script for display. Here's one example where the height is not "read": http://cherokeealumni.org/. And here is an example with 2.4 that does read the height from the image itself: http://dev.alumniforyou.com/.

ddadmin
08-15-2014, 07:42 AM
So what is your end goal, to set all images to the height of the very first, with their widths then scaling proportionally to that height? Do you always know the height of the first image in advance?