Html 及 JS 代码如下: 复制代码 代码如下: style="position: absolute; width: 100px;"> 脚本之家 <BR>var newsOne = document.getElementById("newsOne"); <BR>newsOne.style.bottom = 0; <BR>newsOne.style.left = window.screen.availWidth - 100; <BR>var bottom = 0; <BR>function newsScroll() { <BR>if (bottom > (window.screen.availHeight - window.screenTop)) { <BR>bottom = 0; <BR>newsOne.style.bottom = 0; <BR>} <BR>else { <BR>bottom = bottom + 15; <BR>newsOne.style.bottom = bottom; <BR>} <BR>} <BR>var timeid = setInterval(newsScroll, 300); <BR>function CleartTimeInterVal() { <BR>clearInterval(timeid); <BR>} <BR>function resetInterVal() { <BR>timeid = setInterval(newsScroll, 300); <BR>} <BR> 在线运行: 脚本之家 var newsOne = document.getElementById("newsOne"); newsOne.style.bottom = 0; newsOne.style.left = window.screen.availWidth - 100; var bottom = 0; function newsScroll() { if (bottom > (window.screen.availHeight - window.screenTop)) { bottom = 0; newsOne.style.bottom = 0; } else { bottom = bottom + 15; newsOne.style.bottom = bottom; } } var timeid = setInterval(newsScroll, 300); function CleartTimeInterVal() { clearInterval(timeid); } function resetInterVal() { timeid = setInterval(newsScroll, 300); } [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]