演
示
源
代
码
<script> <!-- Beginning of JavaScript Applet ------------------- function scrollit_r2l(seed) { var m1 = "
" ; var m2 = "" ; var msg=m1+m2; var out = " "; var c = 1; var speed =
; if (seed > 100) { seed-=2; var cmd="scrollit_r2l(" + seed + ")"; timerTwo=window.setTimeout(cmd,speed);} else if (seed <= 100 && seed > 0) { for (c=0 ; c < seed ; c++) { out+=" ";} out+=msg; seed-=2; var cmd="scrollit_r2l(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,speed); } else if (seed <= 0) { if (-seed < msg.length) { out+=msg.substring(-seed,msg.length); seed-=2; var cmd="scrollit_r2l(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,speed);} else { window.status=" "; timerTwo=window.setTimeout("scrollit_r2l(100)",speed); } } } scrollit_r2l(100); // -- End of JavaScript code --> </script>
文字从右到左
文本内容:
运动速度:
(演示页=120,值越大越慢)
注释:放在<body>与</body>之间
当前位置:
首 页
→
JavaScript
→
状 态 栏
→文字从右到左
··万旭网站工作室 设计发布··