Results 1 to 3 of 3

Thread: Pausing up-down Scroller Stops Scrolling after click

  1. #1
    Join Date
    Apr 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing up-down Scroller Stops Scrolling after click

    1) Script Title: http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

    2) Script URL (on DD): Pausing up-down Scroller

    3) Describe problem: When using the scroller users can see it changing and then mouse over it to pause it. If they then click, I open a new browser window to display the content in. BUT, when they close that window and return to the original browser the scroller is still paused because it never got a mouseout. So unless the user thinks to put their mouse over the scroller and then move it out again the scroller will not start working again.

    This occurs when using the Safari/Webkit browser.

    Is there a way to add the click event so that when clicked the scroller starts moving again?

    Note: I had a similar question about another component here and got excellent assistance here, http://www.dynamicdrive.com/forums/s...ad.php?t=55077 but this seems to be totally different so the same solution may not work.

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

    Default

    Untested but this should work. Following the existing two lines, add the new line in red below:

    Code:
    document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
    document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
    document.getElementById(this.tickerid).onclick=function(){scrollerinstance.mouseoverBol=0}
    DD Admin

  3. #3
    Join Date
    Apr 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! That seems to work fine.

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
  •