43、自动滚屏
类别: JavaScript教程
====1、将以下代码加入HEMLl的<body></body>之间:
<script language="JavaScript">
var position = 0;
function scroller() {
if (position !=700 ) {
position++;
scroll(0,position);
clearTimeout(timer);
var timer = setTimeout("scroller()",50);
timer;}}
scroller() ;
</script>
<script language="JavaScript">
var position = 0;
function scroller() {
if (position !=700 ) {
position++;
scroll(0,position);
clearTimeout(timer);
var timer = setTimeout("scroller()",50);
timer;}}
scroller() ;
</script>
-= 资 源 教 程 =-
文 章 搜 索