PDA

View Full Version : Help with javascript slideshow



tebynum
10-05-2010, 06:50 PM
Hello,

I would like to use the blending image slideshow script found here (http://www.dynamicdrive.com/dynamicindex14/image4_dev.htm), but would only like it to run through each image once then stop and display the final image. Is there an easy way to edit the script to accomplish this?

Thanks!

Todd

jscheuer1
10-06-2010, 04:06 AM
Change:


whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)

to:


if(++whichimage<slideimages.length)
setTimeout(slideit,slidespeed+blenddelay);