爱易网
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 浏览次数:20266 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <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:100; 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> <title>隐现导航脚本</title> </head> <body onload="if (document.all||document.layers) {regenerate2();update()}"> <div id="tickertape"> <div id="subtickertape" class="subtickertapefont">初始化...</div> </div> <script language="JavaScript1.2"> //默认速度4.5秒,自己修改速度快慢。 var speed=4500 var news=new Array() news[0]="<a href='index1.htm'>返回首页</a>" news[1]="<a href='index2.htm'>我的小传</a>" news[2]="<a href='index3.htm'>精彩文章</a>" news[3]="<a href='index4.htm'>给我留言</a>" news[4]="<a href='index5.htm'>00000000</a>" news[5]="<a href='index6.htm'>哈哈哈哈</a>" news[6]="<a href='index7.htm'>阿亮提供</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> </body> </html> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:下拉菜单链接页面打开方式选择
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
淘宝公布新规:升级售假卖家惩罚力度
微信将商场O2O战火烧到了阿里巴巴老家
史玉柱卸任巨人网络CEO 继位人选引猜想
微软为避免代理权争夺 与大股东达成和解协议
HTC与苹果三星距离扩展 C2B形式成新武器
京东进驻微信一级入口或影响自身战略布局
中国手游总裁及8名高管集体下岗,被指涉不当交易
Skype周年:与微软联姻到底有没有未来?
中移动五大基地将整改成公司:被指易滋生腐败
推荐阅读
更多>
传4G牌照国庆节前后发放 TD-LTE制式优先
首家国有独资P2P平台上线 或预示政策日渐明朗
总部大楼已换微软Logo:回忆诺基亚的兴衰史
王建宙解构OTT效劳 中移动重塑飞信平台
虚拟运营商流量不清零吸引用户 盈利待明
工商下月将整治手机市场
微软史上最大规模裁员,一半诺基亚员工
传360周鸿祎曾试图阻止百度收购91无线
弯曲变形:手机全新的交互方式
中移动财报外的"五座大山":运营商沦为走秀陪衬
华为变阵:任正非调整三大业务布局
工商总局开查电商“七日退货”
腾讯再次重申:普通微信誉户相对不收费
iSuppli:上网本将于2015年退出市场
柳传志马云陷舆论漩涡:请不要辜负这个时代
搜狐与奇虎360或结盟对抗BAT
网络文学竞争白热化 百度多酷文学网上线
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机
银河证券王锦炎:金融业如何使用大数据
易迅大众点评缩水执行“七天后悔权”被约谈