Html 及び JS 代码如下: 复制代 代码如下: style="位置: 絶対; 幅: 100px;"> 脚本之家 <br>var newsOne = document.getElementById("newsOne"); <br>newsOne.style.bottom = 0; <br>newsOne.style.left = window.screen.availWidth - 100; <br>var ボトム = 0; <br>function newsScroll() { <br>if (bottom > (window.screen.availHeight - window.screenTop)) { <br>bottom = 0; <br>newsOne.style.bottom = 0; <br>} <br>else { <br>下 = 下 15; <br>newsOne.style.bottom = 底; <br>} <br>} <br>var timeid = setInterval(newsScroll, 300); <br>関数 CleartTimeInterVal() { <br>clearInterval(timeid); <br>} <br>function restartInterVal() { <br>timeid = setInterval(newsScroll, 300); <br>} <br> 在線运行: 脚本之家 [Ctrl A 全选注:如く必要取入外部Js必要刷新才能执行] 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); }