PDA

View Full Version : Flexi Slideshow



leeollie
04-22-2005, 03:01 PM
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

jscheuer1
04-22-2005, 06:27 PM
OK, add this line:


//configure the below to determine number of rotations (0 = unlimited)
var rotlimit=2just above this line:


////Do not edit pass this line////////////////add this line:


var cntrot=0just above this line:


function rotateimages(){replace this line:


if (currentslide==variableslide.length-1) currentslide=0with these lines:


if (currentslide==variableslide.length-1){
cntrot++
if (cntrot==rotlimit)
return;
else currentslide=0
}That's it!