View Full Version : Ultimate Fade-in slideshow (v2.1) stop on last image

01-25-2010, 09:59 PM
1) Script Title: DD Ultimate Fade-in slideshow (v2.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem:
How can I get the Ultimate Fade-in slideshow (v2.1) to stop automatically on the last image instead of cycling once and stopping on the first image? Is there a way to do this or appear to do this with hidden divs? This thread gets me close to what I want, but in reverse. http://www.dynamicdrive.com/forums/showthread.php?t=50185

Any help is appreciated. thank you.

01-26-2010, 09:50 AM
Simply find the below code in red inside the .js file:

if (setting.currentstep<=setting.totalsteps || setting.displaymode.cycles==0)

and change that to just "<" (less than).

01-26-2010, 01:19 PM
This worked perfectly. Thank you!

02-28-2011, 08:28 AM
Ok I have tried what has been mentioned just using "<" and still the slideshow cycles back to the first image :( it was late when I tried it and maybe I was vioewing a cached version in test browser I will test agin and will also upload a demo to my testing server later for checking but here is the line of code as shown...I have tried with and without quote marks....
setting.currentstep+=1if (setting.displaymode.type=="auto"){if (setting.currentstep<setting.totalsteps || setting.displaymode.cycles==0)setting.playtimer=setTimeout(function(){slideshow.showslide('next')}, setting.displaymode.pause)}