Results 1 to 2 of 2

Thread: Can it be slowed down

  1. #1
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can it be slowed down

    1) Script Title: Left-Right Image Slideshow Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ightslide2.htm

    3) Describe problem:

    Is it possible to slow the script down when showing the new image. I want to have a continuos flow with no pausing, but when I decrease the pausebetweenimages to 10, it just runs through at a speed. I haven't changed the code except for the pausebetweenimages.

    I'm redoing my home page and would like to have this on my main page.

    Any help in this regard will greatly appreciated.

  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

    If you look at the script code, you will find 4 statements like this one:

    Code:
    setTimeout("move3(tdiv)",50)
    The highlighted part is different in each one, but the red 50 is the same in all four. Increasing this number (it is the number of milliseconds between each incremental movement of the images) will slow down the actual movement, but if it is increased too much, things will get jerky.

    Now, above each of those 4 lines is a line with the number 5 in it. That's the number of pixels that the images move by each 50 milliseconds. Decreasing that number will also slow things down. In fact, doing it that way would probably be smoother. Whatever you do, if you change the 50's, change them all to the same new value. If you change the 5's - same thing - all to the same new value.
    - 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
  •