html - More Scrolling Overflowed Divs with Javascript -


My question basically goes back to:

I want to know how to use jQuery How to do without doing Any help would be appreciated. thank you in advanced!

In addition: In the linked question, does it split a full scroll height down each time the code is executed? If so, how can I scroll down with the status of the mouse? In other words, once I take a mouse to the bottom of the div, how can I make it continue to scroll down the device, and possibly the mouse cursor should be in the same position Not needed, but appreciated)? Thank you once again!

I believe that I know how to fix the effect you are seeing. I'm just using onmouseover and onmouseout events to start and stop the JavaScript interval mechanism that uses the scrollTop property in the div to simulate scrolling. Give it a whirl:

  & lt; Script & gt; Var interval, cur_scroll = 0; Function scroll () {interval = set interval (function () {cur_scroll + 2; document. GetElementById ('testDiv'). ScrollTop = cur_scroll;}, 40); } Function stop () {clear interval (interval); } Document.getElementById ('testDiv') setAttribute ('onmouseover', 'scroll ()'); Document.getElementById ('testDiv') setAttribute ('On Mouseout', 'Stop ()'); & Lt; / Script & gt;  
  & lt; Div id = "testDiv" & gt; Responsive Advertising In addition to this, we are free to all, in this situation it is estimated that 


Comments