首页 >web前端 >js教程 >状态栏显示欢迎信息的脚本特效_状态特效

状态栏显示欢迎信息的脚本特效_状态特效

WBOY
WBOY原创
2016-05-16 19:16:081182浏览

[Ctrl A 全选 注:如需引入外部Js需刷新才能执行
]<script> <!-- function Helpor_net(seed) { var m1 = "欢迎您来到★脚本之家★,请多提意见。谢谢! !" ; var m2 = "" ; var msg=m1+m2; var out = " "; var c = 1; var speed = 330; if (seed > 100) { seed-=2; var cmd="Helpor_net(" + 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="Helpor_net(" + 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="Helpor_net(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,speed);} else { window.status=" "; timerTwo=window.setTimeout("Helpor_net(100)",speed); } } } Helpor_net(100); --> </script>
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn