爱易网
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 浏览次数:20250 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:下拉菜单链接页面打开方式选择
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
说说这一个月的赌球输了多少
微软史上最大规模裁员,一半诺基亚员工
传三星为赢得新兴市场:推廉价版Note3
苹果音乐效劳新战略:与唱片商停止流媒体协作
【晚报】女子泰国游晒10照片 流量费2000
从旗下三大业务BG发展看华为的过去现在和未来
传苹果与雅虎协作信息提供 进一步摆脱谷歌
电话用户9月实名制:运营商监管受质疑
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
推荐阅读
更多>
都是300元内 乐视盒子与小米盒子对比体验
特斯拉将获上海免费牌照 充电桩面临双重标准
戴尔正告继续上市存风险 称黑石伊坎方案有缺乏
谁说黑莓没救?他们在悄悄地深耕企业级市场,在这个领域,苹果三星算什么,他们远远不是黑莓的对手
中国雅虎邮箱今日关停 由盛及衰的背后
618首日看京东阿里不同策略,鹿死谁手?
中国联通困局:遭遇OTT宽带4G三大难题
Android应用审核乱象:诈骗软件冲上排行榜首
解析2014年阿里百度等五大互联网巨头深度布局
首批四款“官方”打车软件发布:均为安卓版本
华为、小米和联想在中国手机市场上演“三国杀”
代工厂生活危机:“富士康们”何去何从?
中移动财报外的"五座大山":运营商沦为走秀陪衬
为啥苹果定要出廉价iPhone?都是安卓逼的
一个非脑残米粉的思考:小米“成功之道”如何炼成
Facebook以“人”为本的名义占领安卓
喜大普奔:2016年国内乘客有望在飞机上使用手机
App Store严禁推送广告 运用面临大清洗
苹果MacBook Air劣势渐显 或推新产品改变命运
腾讯再次重申:普通微信誉户相对不收费