Hi
I'm using the Flexi slideshow. I'd like to know how I can set a total number for the image rotations. I would rather the images rotate twice and then stop.
Any idea how I can set a limit for this?
Thanks!
Lee
Hi
I'm using the Flexi slideshow. I'd like to know how I can set a total number for the image rotations. I would rather the images rotate twice and then stop.
Any idea how I can set a limit for this?
Thanks!
Lee
OK, add this line:
just above this line:Code://configure the below to determine number of rotations (0 = unlimited) var rotlimit=2
add this line:Code:////Do not edit pass this line////////////////
just above this line:Code:var cntrot=0
replace this line:Code:function rotateimages(){
with these lines:Code:if (currentslide==variableslide.length-1) currentslide=0
That's it!Code:if (currentslide==variableslide.length-1){ cntrot++ if (cntrot==rotlimit) return; else currentslide=0 }
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks