|
首页
|
网页设计
|
w3c标准
|
flash动画
|
平面设计
|
经典文章
|
特约专题
|
资源下载
|
健康频道
|
重庆品牌网站
|
留言簿
|
技术文章
资源下载
经典素材
社区论坛
您现在的位置:
vi设计在线
>>
经典文章
>>
网页设计
>>
技术教程
>> 正文
浏览器状态栏文字从右弹出
热
[ 作者:佚名 转贴自:本站原创 点击数:1273 更新时间:2007/2/3 文章录入:
QQ392398985
]
减小字体
增大字体
脚本说明: 把如下代码加入<head>区域中 <script language="javascript"> var MESSAGE = " 欢迎来到亿情网络 " var POSITION = 150 var DELAY = 10 var scroll = new statusMessageObject() function statusMessageObject(p,d) { this.msg = MESSAGE this.out = " " this.pos = POSITION this.delay = DELAY this.i = 0 this.reset = clearMessage} function clearMessage() { this.pos = POSITION} function scroller() { for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) { scroll.out += " "} if (scroll.pos >= 0) scroll.out += scroll.msg else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length) window.status = scroll.out scroll.out = " " scroll.pos-- if (scroll.pos < -(scroll.msg.length)) { scroll.reset()} setTimeout ('scroller()',scroll.delay)} function snapIn(jumpSpaces,position) { var msg = scroll.msg var out = "" for (var i=0; i<position; i++) {out += msg.charAt(i)} for (i=1;i<jumpSpaces;i++) {out += " "} out += msg.charAt(position) window.status = out if (jumpSpaces <= 1) { position++ if (msg.charAt(position) == ' ') {position++ } jumpSpaces = 100-position } else if (jumpSpaces > 3) {jumpSpaces *= .75} else {jumpSpaces--} if (position != msg.length) { var cmd = "snapIn(" + jumpSpaces + "," + position + ")"; scrollID = window.setTimeout(cmd,scroll.delay); } else { window.status="" jumpSpaces=0 position=0 cmd = "snapIn(" + jumpSpaces + "," + position + ")"; scrollID = window.setTimeout(cmd,scroll.delay); return false } return true} snapIn(100,0); </script>
上一篇文章:
文字在状态栏上从左往右一个一个地显示
下一篇文章:
下拉菜单
【
发表评论
】【
告诉好友
】【
打印此文
】【
关闭窗口
】
技术文章
资源下载
经典素材
社区论坛
中大型美容美发店老…
[
1062
]
重庆多达学习俄语培…
[
2293
]
重庆恒祥广告有限公…
[
1992
]
重庆市南方阻燃电线…
[
2404
]
重庆舞美灯光音响有…
[
3147
]
重庆德鼎滤油机有限…
[
1910
]
重庆民生建材有限公…
[
2351
]
重庆集元科技有限公…
[
4130
]
重庆倍润商贸有限公…
[
2016
]
重庆腾达展览有限公…
[
3082
]
帝一网络创始人宣…
--[
3180
]
重庆vi设计在线祝…
--[
2743
]
重庆帝一网络书生…
--[
2856
]
馋嘴鸭的起伏和经…
--[
3001
]
机器感觉“卡”的…
--[
2931
]
ActionScript3打造…
--[
5767
]
在ASP文件中读取H…
--[
7241
]
vi设计经典案例
--[
63841
]
帅到掉渣-爆笑版勇…
--[
7067
]
一个女孩写的经典…
--[
6827
]
没有相关文章
(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
没有任何评论
|
设为首页
|
加入收藏
|
联系站长
|
友情链接
|
版权申明
|
重庆网站建设
|
版权所有: vi设计在线 © 2005-2018 网站备案序号:渝ICP备06003824号
技术支持:帝一网络(重庆网站建设专家)