87,907
社区成员
发帖
与我相关
我的任务
分享
<div id="text3" style="OVERFLOW: hidden; WIDTH: 235px; HEIGHT: 120px">
<div id="text4" >
最新公告
网站正式开通!
</div>
<div id="text5"></div>
</div>
<script language="javascript">
var speed1=100
text5.innerHTML=text4.innerHTML
function Marquee1(){
if(text5.offsetTop-text3.scrollTop<=0)
text3.scrollTop-=text4.offsetHeight
else{
text3.scrollTop++
}
}
var MyMar1=setInterval(Marquee1,speed1)
text3.onmouseover=function() {clearInterval(MyMar1)}
text3.onmouseout=function() {MyMar1=setInterval(Marquee1,speed1)}
</script>