Results 1 to 2 of 2

Thread: Help with javascript slideshow

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with javascript slideshow

    Hello,

    I would like to use the blending image slideshow script found here (http://www.dynamicdrive.com/dynamici...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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Change:

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

    Code:
    if(++whichimage<slideimages.length)
    setTimeout(slideit,slidespeed+blenddelay);
    - John
    ________________________

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

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
  •