Hello, I installed this Dynamic Drive script: www.dynamicdrive.com/dynamicindex14/image4.htm but I need help modifying the script so that it doesn't auto-loop. Does anyone have a suggestion? Thanks in advance!
this is a horrible little script... it's not written badly, considering when that happened. but you should NOT use scripts from dynamic drive, rule of thumb. to stop it from looping, find: whichlink = whichimage whichimage = (whichimage<slideimages.length-1)? whichimage+1 : 0 setTimeout("slideit()",slidespeed+blenddelay) PHP: this increments the counter to +1 until it reaches the end of the images list, then sets to 0. the next line goes and self calls the script which will read the nextimage again as the first one. you can do: whichlink = whichimage whichimage = (whichimage<slideimages.length-1)? whichimage+1 : 0 if (whichimage) setTimeout(slideit, slidespeed+blenddelay); PHP: basically if whichimage is > 0 it will evaluate as true hence it will queue up the next execution cycle. once it becomes 0, this will evaluate as false which will break it. notice i have removed the " " around the slide it call in the setTimeout, this has performance issues evaluating the string otherwise. what does this do anyway, swap between images as like a slideshow? the fade effect applied would only work on IE as well... and the transition won't be smooth etc. it can use a preloader also... anyway, good luck
I tried that - it didn't work. Do you have another referral to a Javascript slideshow animation? Thanks!