yoguz
查看yoguz的博客
金钱 | : 18255 |
Level | : 0 |
发帖数 | : 1564 |
最后登陆 | : 2019/10/24 |
注册时间 | : 2004/12/13 |
|
脚本说明: 把如下代码加入<meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <head>区域中 <script> <!-- Beginning of JavaScript Applet ------------------- function scrollit_r2l(seed) { var m1 = "欢迎来到大中华导航网站,请多提意见。谢谢!" ; var m2 = "" ; var msg=m1+m2; var out = " "; var c = 1; var speed = 120; 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>
|