爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
定时更换的超酷连接
定时更换的超酷连接
日期:2014-05-18 浏览次数:20510 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <title>爱易网网页特效演示,定时更换的超酷连接</title> </head> <body onload="if (document.all||document.layers) {regenerate2();update()}"> <!--用<body onload="if (document.all||document.layers) {regenerate2();update()}">替换原来的<Body>--> <!--将以下代码加入HTML的<Body></Body>之间--> <style> <!-- #tickertape{ position:relative; layer-background-color:black; width:400; height:12; ; font-family: "宋体"; font-size: 9pt} #subtickertape{ background-color:black; position:absolute; border: 1px solid black; width:400; height:12; ; font-family: "宋体"; font-size: 9pt } .subtickertapefont{ font:bold 9pt "宋体"; text-decoration:none; color:white; } .subtickertapefont a{ color:white; text-decoration:none; ; font-family: "宋体"; font-size: 9pt} --> </style> <div id="tickertape"> <div id="subtickertape" class="subtickertapefont">初始化...</div> </div> <script language="JavaScript1.2"> var speed=2500 var news=new Array() news[0]="<a href='#'>网页特效</a>" news[1]="<a href='#'>资源文章</a>" news[2]="<a href='#'>源码下载</a>" news[3]="<a href='#'>教程学习</a>" news[4]="<a href='#'>平面设计</a>" i=0 if (document.all) tickerobject=document.all.subtickertape.style else tickerobject=document.tickertape.document function regenerate(){ window.location.reload() } function regenerate2(){ if (document.layers) setTimeout("window.onresize=regenerate",450) } function update(){ BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10); if (document.layers){ document.tickertape.document.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>') document.tickertape.document.subtickertape.document.close() } else document.all.subtickertape.innerHTML=news[i] if (i<news.length-1) i++ else i=0 setTimeout("update()",speed) } function BgFade(red1, grn1, blu1, red2, grn2, blu2, steps) { sred = red1; sgrn = grn1; sblu = blu1; ered = red2; egrn = grn2; eblu = blu2; inc = steps; step = 0; RunFader(); } function RunFader() { var epct = step/inc; var spct = 1 - epct; if (document.layers) tickerobject.bgColor = Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct); else tickerobject.backgroundColor= Math.floor(sred * spct + ered * epct)*256*256 + Math.floor(sgrn * spct + egrn * epct)*256 + Math.floor(sblu * spct + eblu * epct); if ( step < inc ) { setTimeout('RunFader()',50); } step++; } </script> </tr></table> </body></html> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:鼠标触及连接滚动提示信息
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
TD是完成中国梦的一个契机
黑狐病毒疯传播 电脑管家首推 专杀工具
人们为什么总愿尝试新社交网络?
亚马逊宣布新春大促策略 欲打造另一个"黑五"
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
运营商补贴减少 国内通信业拐点逼近
中移动一季度净利大降:手机补贴增长过快
传苹果中移动达成协议:新iPhone兼容TD制式
淘宝公布新规:升级售假卖家惩罚力度
推荐阅读
更多>
广东移动董事长徐龙受调查 圈内对其褒贬不一
云储存有多远:跨过数据安全问题即可到达
苹果已经允许开发者提交64位应用程序
诺基亚仍是第二大手机商:功用机有利可图
微信收费形式三选一 腾讯或变身运营商
小微型IDC云化趋势加剧 云计算未来或现终极模式
易信工具性优势突出 丁磊三板斧或先砍在飞信上
传苹果已告知鸿海:两款新iPhone下月发货
第二梯队也PK:当1号店“遇上”京东手机节
十亿美元的告别礼:三星为何要大举重组?
虚拟运营商流量不清零吸引用户 盈利待明
电话用户9月实名制:运营商监管受质疑
中电信率先推移动转售业务 中下旬批量上市
墨迹天气:产品创新以攻为守方能对抗巨头
揭秘:阿里巴巴“无人认领”的三成股权都归谁
京东封杀财付通:终极目标是电商生态圈
马云自称在美国曾被绑票
苹果30亿美元收购Beats
窗口期:还有哪些互联网公司可能今年IPO?
工商总局开查电商“七日退货”