爱易网
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 浏览次数:20556 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:鼠标触及连接滚动提示信息
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
阿里巴巴450亿勾画“现代服务业”藏宝图
京东物流"最后一公里":颠覆阿里或者被阿里干掉
代工厂生活危机:“富士康们”何去何从?
二代 iPad Air将配备2GB内存?为同屏多任务做准备
阿里物流搭上邮政:京东,我们在终点等你!
2019双12阿里云老用户怎么参加拼团活动 老用户拼团方法
神奇约炮应用被禁 改名后重返苹果应用商店
同程旅游融资后变土豪 如何烧钱占领市场?
虚拟运营商温度有多高?降温OR升温内外有别
推荐阅读
更多>
雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元
三大运营商合建铁塔公司真相:未涉及电信业重组
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机
靠价格战赚取资费套餐利润差,虚拟运营商必死无疑
八位知名设计师评iOS7:新鲜但复杂
二代 iPad Air将配备2GB内存?为同屏多任务做准备
国网公司将加快组建 业界人士称困难重重
华为变阵:任正非调整三大业务布局
9月1日起免征新能源汽车购置税
广电地方营业厅的一句“罚停”,暴露出了他们的本质
流浪汉高考状元终于找到工作:月薪3000做程序员很满意
PC迎9年来出货量新低 平板电脑渐成主流
快播灭了,还有西瓜:视频网站的灰色江湖还在
评论:马云的成功建立在什么基础上很值得怀疑
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
说说这一个月的赌球输了多少
阿里国际化再落子:2.49亿美元投资新加坡邮政
TD是完成中国梦的一个契机
网络文学竞争白热化 百度多酷文学网上线
苏宁易购成世界最慢电商 专家称其涉嫌违约