SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Feb 2003
    Location
    Shropshire
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I change pause speed in different browsers?

    I am using a pre-written script to show scrolling text on a page (Mike's DHTML Scroller from Dynamic Drive). Everything works fine except that when my client views it from his browser the pause time isn't long enough between each section of text that scrolls up where as on mine it is just right.

    It has been suggested to me that it is affected by which type of browser the viewer is using and so I need to be able to change the pause speed depending on browser.

    What I need to know is how and where I insert this into the code?

    Part of the code that controls the default speed is below.

    Code:
    // Set default scroll timing values.
      this.speed = 600;
      this.pauseTime = 3000;
    The code that is in the actual page controlling the pause speed is:

    Code:
     //SET SCROLLER PAUSE
    myScroller1.setPause(5000); //set pause beteen msgs, in milliseconds
    If anyone can help it would be much appreciated.

    Thanks

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by chilli11
    I am using a pre-written script to show scrolling text on a page (Mike's DHTML Scroller from Dynamic Drive). Everything works fine except that when my client views it from his browser the pause time isn't long enough between each section of text that scrolls up where as on mine it is just right.

    It has been suggested to me that it is affected by which type of browser the viewer is using and so I need to be able to change the pause speed depending on browser.

    What I need to know is how and where I insert this into the code?

    Part of the code that controls the default speed is below.

    Code:
    // Set default scroll timing values.
      this.speed = 600;
      this.pauseTime = 3000;
    The code that is in the actual page controlling the pause speed is:

    Code:
     //SET SCROLLER PAUSE
    myScroller1.setPause(5000); //set pause beteen msgs, in milliseconds
    If anyone can help it would be much appreciated.

    Thanks

    I would doubt the time is different between browsers, maybe in a case of load/exicute time. But that would be computer specific (cpu speed/memory etc.) Time is time, I would experiment with the above times, find a time that satisfies your client.
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  3. #3
    SitePoint Addict
    Join Date
    Feb 2003
    Location
    Shropshire
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I initially thought it was to do with connection speed as I am viewing over ISDN where as my client has the luxury of Broadband. However the person who thought it was to do with the browser said different.

    Anyway I will try fiddling with the time again and see what happens.

    Thanks


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
  •