1) Script Title: Ultimate Fade-in slideshow (v1.51)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.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

Code:
if (fadecount<5) { 
... 
fadecount++;
}
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,
Gon