爱易网
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 浏览次数:20534 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:鼠标触及连接滚动提示信息
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
Android版WhatsApp曝漏洞:聊天记录可被窃取
携程整合去哪儿陷入僵局 欲联手老对手艺龙
微信将商场O2O战火烧到了阿里巴巴老家
雅安地震 绝不宽恕应用人们爱心的骗子!
支付宝服务窗后台首曝光 开放用户消费数据
华为任正非:家族成员不会成为接班人
小米年度发布会遭围剿!多款新品难阻品牌危机
中兴通讯不打机海战术 将向中高端手机转型
巧用百度推行系统 突显竞价效果
推荐阅读
更多>
网友爆料称微软雇水军宣传主机Xbox One
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
搜狐与奇虎360或结盟对抗BAT
如家撤离同程内情:祸起反水OTA“联盟”?
微软提示XP只剩365天寿命:用户被绑架?
团购网站存活率仅18.6% 剩余缺乏千家
组建铁塔公司倒逼运营商改革 或加速4G网建设
从3G牌照发放看中国4G规划效果
百度透露无人驾驶战略 研发三维交通地图
网曝富士康“二连跳” 疑因推静音模式
互联网情色众多 Facebook与9158态度大不同
特斯拉技术专利开放,要革自己的命?
原万网CTO周雷加盟亿玛 出任CTO一职
“论文查重”网店一月收入竟过百万
史玉柱谈创业:5大建议 失败的教训最真实
阿里巴巴上市后雅虎将面临更大的业绩压力
苹果优势逐渐丧失 传即将推出廉价iPhone
亚马逊Fire Phone:请别拿我跟苹果三星比
孙正义入股阿里往事还原:阿里巴巴并非软银首选
牟贵先挂帅 国美在线“价钱战”昔日开打