爱易网
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 浏览次数:20296 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:下拉菜单链接页面打开方式选择
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
韩国研制无线充电系统:一次可充40部手机
论:三大运营商运用商店逆袭并非不能够
“组合拳”怎么打 拆解小米新玩法
“世界杯+618”集体磨刀的本质是绑架全民
支付宝全面封杀比特币:充值码淘宝店或遭封禁
传360周鸿祎曾试图阻止百度收购91无线
传陌陌或12月赴美IPO 估值约30亿美元
IT时代周刊总编辑曹健:投资人刘志硕印象记
淘宝公布新规:升级售假卖家惩罚力度
推荐阅读
更多>
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
微软很“捉急”:补贴Win8 重加末尾按钮
网络文学竞争白热化 百度多酷文学网上线
阿朗力避步北电后尘 急切停止自我革新
HTC的三大迷惘:高管釜底抽薪 产品营销战略混乱
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!
iSuppli:上网本将于2015年退出市场
淘宝公布新规:升级售假卖家惩罚力度
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
柳传志马云陷舆论漩涡:请不要辜负这个时代
想玩P2P?几个您必须知道的潜规则
工商下月将整治手机市场
亚马逊第三方平台真的卖盗版书?
华为任正非:家族成员不会成为接班人
小米打响手机价格战 为米3铺路或另有所图
苏宁易购成世界最慢电商 专家称其涉嫌违约
北京电信推“0月租卡”,同网通话免费
美剧讲硅谷创业者:远不及现实荒诞?
联通丹东公司一高管造假套出手机变卖被判刑7年
网曝富士康500万iphone遭退货是确证的事