PDA

View Full Version : Pausing up-down Scroller Stops Scrolling after click



Webster
06-15-2010, 10:35 AM
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/showthread.php?t=55077 but this seems to be totally different so the same solution may not work.

ddadmin
06-15-2010, 09:24 PM
Untested but this should work. Following the existing two lines, add the new line in red below:


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}

Webster
06-16-2010, 07:26 AM
Thanks! That seems to work fine.