scroller.html

来自「学习源代码」· HTML 代码 · 共 60 行

HTML
60
字号
<html> <head> <script language="JavaScript"> <!-- Hide var scrtxt="怎麽样 ! 很酷吧 ! 您也可以试试."+"Here goes your message the visitors  to your page will "+"look at for hours in pure fascination..."; var lentxt=scrtxt.length; var width=100; var pos=1-width; function scroll() {   pos++;   var scroller="";   if (pos==lentxt) {     pos=1-width;   }   if (pos<0) {     for (var i=1; i<=Math.abs(pos); i++) {       scroller=scroller+" ";}     scroller=scroller+scrtxt.substring(0,width-i+1);   }   else {     scroller=scroller+scrtxt.substring(pos,width+pos);   }   window.status = scroller;   setTimeout("scroll()",150);   } //--> </script> </head> <body onLoad="scroll();return true;"> 这里可显示您的网页 !走马灯在下面状态栏。 </body> </html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?