Home >Web Front-end >JS Tutorial >JS uninterrupted scrolling effect code_javascript skills

JS uninterrupted scrolling effect code_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 17:07:011205browse
复制代码 代码如下:




<script> <br>var speed=50 <br>demo2.innerHTML=demo1.innerHTML <br>function Marquee(){ <br>if(demo2.offsetTop-demo.scrollTop<=0) <BR>demo.scrollTop-=demo1.offsetHeight <BR>else{ <BR>demo.scrollTop <BR>} <BR>} <BR>var MyMar=setInterval(Marquee,speed) <BR>demo.onmouseover=function() {clearInterval(MyMar)} <BR>demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} <BR></script>

脚本之家


Statement:
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