<div class="codetitle"> <span><a style="CURSOR: pointer" data="41685" class="copybut" id="copybut41685" onclick="doCopy('code41685')"><u>复制代</u></a></span> 代码如下:</div> <div class="codebody" id="code41685"> <br><div style="border:#d3d3d3 1px Solid;width: 100%;"><br> <div id="demo" style="overflow:hidden;height:160;width:100%;"><br> <div id="demo1"><br> 文章标题列表<br> </div><br> <div id="demo2"></div><br> </div><br> </div><br> <script language="javascript"><br> varspeed=30<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> デモ.onmouseover= function() {clearInterval(MyMar)}<BR> demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}<BR> </script> <br> </div>