Web Analytics Made Easy -
StatCounter Getting slide show to run automatically instead of hitting next slide - CodingForum

Announcement

Collapse
No announcement yet.

Getting slide show to run automatically instead of hitting next slide

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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/dynamici...dhtmlslide.htm

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

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

        
    setTimeout("autoSlide()", (1000) );
    }
    window.onload=autoSlide
    Where the 5 * 1000 = 5 seconds between each slide
    The answer does not come from thinking outside the box, it comes from realizing the truth :-
    "There Is No Box". [JavaScript Gadgets'n'Gizmos][JavaScript-FX]

    Comment

    Working...
    X