Results 1 to 3 of 3

Thread: DHTML Slide Show Script

  1. #1
    Join Date
    Feb 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Slide Show Script

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

    Is there a way to make the slide show script "next slide button" loop back to the first picture when it come to the end?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,127
    Thanks
    44
    Thanked 3,228 Times in 3,189 Posts
    Blog Entries
    12

    Default

    Replace the two functions of the same names as these with these versions:

    Code:
    function backward(){
    which=which>0? which-1 : photos.length-1
    applyeffect()
    document.images.photoslider.src=photos[which]
    playeffect()
    keeptrack()
    }
    
    function forward(){
    which=which<photos.length-1? which+1 : 0
    applyeffect()
    document.images.photoslider.src=photos[which]
    playeffect()
    keeptrack()
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much John it worked like a dream. I appreciate it so very much. Here's the page on my site if you want to see what I've done: http://bayeus.pircsites.com/page-two.html

    Again Thank you so very much for your help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •