首页
微信
安卓
接口
移动
前端
专题
文档库
工具
网址
§
ITPOW
>>
文档
>>
JavaScript
>>
文字特效
状态栏滚动文字特效
作者:chilleen 来源:
ITPOW
日期:2004-9-30
<script type="text/javascript"> <!-- var text = "状态栏滚动文字特效"; var space=""; for(i=0;i<70;i++) space=space+" "; text=space+text; pos=0; maxpos=text.length+space.length; msglen= 80; var speed = 100; function ActiveInfo() { if(pos+msglen>maxpos) pos=0; msg=text.substring(pos,pos+msglen); window.status = msg; setTimeout("ActiveInfo()", speed); pos++; } ActiveInfo(); --> </script>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
相关文章
创建于2005年
渝ICP备05010272号-1
电邮:
cftea@126.com
即将跳转...