View Full Version : variation of ::Ultimate Fade-in slideshow (v1.51) - adding a counter

08-06-2009, 12:53 PM
1) Script Title: Ultimate Fade-in slideshow (v1.51)

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

3) Describe problem:

I want to alter the script with an option to run the slideshow only for a certain number of fade-ins. I have 5 pictures and once the script showed them all, I wan't the script to stop.

What I tried was to create a var fadecount, set it to 0 and use

if (fadecount<5) {

The problem is, I use javascript only on a copy/paste and trial&error basis and I can't find the right place to add this counter.

Thanks in advance,