Home > Web Front-end > JS Tutorial > Simple seamless scrolling program - just a few lines of code_javascript tips

Simple seamless scrolling program - just a few lines of code_javascript tips

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 19:13:40
Original
1025 people have browsed it

  • 1. Have you ever had countless dreams?

  • 2. But they are disillusioned with the passage of time

  • 3. You Have you ever looked forward to the future?

  • 4. But you were lost in the growing years

  • 5. CSDN Chinese Programmer Forum

  • 6. Let’s all come together

  • 7. They all look good





DOM method of getElementsByClassName
<script> <BR>var t=setInterval(myfunc,1000); <BR>var oBox=document.getElementById("ScrollBox"); <BR>function myfunc(){ <BR>var o=oBox.firstChild <BR>oBox.removeChild(o) <BR>oBox.appendChild(o) <BR>} <BR>oBox.onmouseover=function(){clearInterval(t)} <BR>oBox.onmouseout=function(){t=setInterval(myfunc,1000)} <BR></script>
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template