Results 1 to 6 of 6

Thread: Speeding Up Scrolling Images

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

    Default Speeding Up Scrolling Images

    1) I am using Left-Right image slideshow Script.

    2) http://www.backexperts.com/devl/

    3) I need to make the images scroll faster. How can I do that?

    Thanks in advance!

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

    Default URL on DD

    Sorry, I did not understand the posting instructions properly I guess. the URL for the script I am trying to alter is:

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

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The scroll speed is governed by:

    1) How many pixels the image moves per interval
    2) The interval between each move (ie: setTimeout("move4(scrollerdiv2)",50))

    You can try changing 2) first. Just do a search and replace for "50" in the script, and replace that with a lower number, say, "10"

  4. #4
    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

    Everything looks slower (to the eye) with those wider images that you are using.

    Much older browsers (like v 4 and older) will probably have trouble with faster speeds but, these browsers aren't in wide use any longer and would probably have even greater problems with other parts of your page. To speed it up, you can change the time out values. There are 4 of them:

    Code:
    setTimeout("move1(tlayer)",50)
    Code:
    setTimeout("move2(tlayer2)",50)
    Code:
    setTimeout("move3(tdiv)",50)
    Code:
    setTimeout("move4(scrollerdiv2)",50)
    The first two are only for certain of these very old browsers, so, leave them alone. The last two (red) cover the rest of the very old browsers and all of the newer ones. Change those 50's to 40's, 20's, 35's, anything 10 or greater. For evenness, set them both to the same value. Use whatever value looks good to you.
    - John
    ________________________

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

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

    Default

    Thank you very much!

    Is it bad to use a number lower than 10?

  6. #6
    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

    Quote Originally Posted by ftbadolato View Post
    Thank you very much!

    Is it bad to use a number lower than 10?
    10 should be pretty darn fast. But, technically, you could use 0 or any positive number. These are numbers of milliseconds to pause between incremental movements. Modern software and computers can usually handle such small slices. Folks browsing with legacy browsers and/or computers will not see a pretty sight. The higher the number that you can use and still have it look OK to you, the better.
    - 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
  •