Helpful Information
 
 
Category: Dynamic Drive scripts help
Getting slide show to run automatically instead of hitting next slide

Is there a way to get this slide show to run automatically. Also, how would I change the delay.

Any help is appreciated...Here is the script..


http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm

put this code in the <HEAD> section (just after the forward() and backward() functions)



function autoSlide()
{
which = (which + 1) % photos.length;
applyeffect();
document.images.photoslider.src=photos[which];
playeffect();
keeptrack();

setTimeout("autoSlide()", (5 * 1000) );
}
window.onload=autoSlide;


Where the 5 * 1000 = 5 seconds between each slide










privacy (GDPR)