内容 |
<div onMouseOver="stop()" onMouseOut="start()"> <table width="880" cellspacing="0" cellpadding="0" id="scrollimg" height="21"> <tr> <td id="simg"> <TABLE width="880" cellspacing="0" cellpadding="0" height="21"> <tr> <td>{FS400_head滚动新闻}</td> </tr> </TABLE> </td> <td id="simg1"></td> </tr> </table> </div> <script LANGUAGE="Javascript"> var tm=null function newsScroll() { if(scrollimg.parentNode.scrollLeft!=(scrollimg.clientWidth/2)) scrollimg.parentNode.scrollLeft++; else scrollimg.parentNode.scrollLeft=0 } window.onload=function() { simg1.innerHTML=simg.innerHTML tm=setInterval('newsScroll()',20) } function stop() { clearInterval(tm) } function start() { tm=setInterval('newsScroll()',20) } </script> |