网乐原科技

直播中

news center新闻中心
首页 > 资讯中心 > 软件技术

字符在状态栏中缓慢移动 

发布时间:2008-12-20     阅读数: 次       来源:网乐原科技
要完成此效果把如下代码加入到区域中 <script LANGUAGE="javascript"> function wh_showStatus(){ if (wh_StatusType == "left") { wh_StatusText = " " + wh_StatusText; } else if (wh_StatusType == "right") { wh_StatusText = wh_StatusText.substring(1,wh_StatusText.length); } if (wh_StatusText == "" || wh_StatusText.length > 80) { wh_StatusText = "Welcome to JavaScript Fairyland"; if (wh_StatusType == "right") { while (wh_StatusText.length < 80) wh_StatusText = " " + wh_StatusText; } } status = wh_StatusText; setTimeout("wh_showStatus()",wh_StatusSpeed); } wh_StatusText = "Welcome to 细 溪 驿 站"; wh_StatusSpeed = 1000; wh_StatusType = "left"; if (wh_StatusType == "right") { while (wh_StatusText.length < 80) wh_StatusText = " " + wh_StatusText; } setTimeout("wh_showStatus()",wh_StatusSpeed); </script>

网乐原科技

客服热线:0771-5761507

QQ:53290011

QQ邮箱:53290011@qq.com

工作时间:周一到周五 9:00-18:00

地址:广西南宁市江南万达写字楼C16栋1309室

物联网开发

关注我们

微信小商店 腾讯QQ客服 微信客服