爱易网
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 浏览次数:20712 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: <meta http-equiv="refresh" content="10; url=http://www.k688.com"> <style> <!-- #bar, #barbackground{ position:absolute; left:185; top:120; background-color:red; } #barbackground{ background-color:c0c0c0; } --> </style> <script> //1) Set the duration for the progress bar to complete loading (in seconds) var duration=5 //2) Set post action to carry out inside function below: function postaction(){ //Example action could be to navigate to a URL, like following: //window.location="games/checker.htm" } ///Done Editing///////////// var clipright=0 var widthIE=0 var widthNS=0 function initializebar(){ if (document.all){ baranchor.style.visibility="visible" widthIE=bar.style.pixelWidth startIE=setInterval("increaseIE()",150) } if (document.layers){ widthNS=document.baranchorNS.document.barbackgroundNS.clip.width document.baranchorNS.document.barNS.clip.right=0 document.baranchorNS.visibility="show" startNS=setInterval("increaseNS()",150) } } function increaseIE(){ bar.style.clip="rect(0 "+clipright+" auto 0)" window.status="已经完成了......" if (clipright<widthIE) clipright=clipright+(widthIE/(duration*20)) else{ window.status='' clearInterval(startIE) postaction() } } function increaseNS(){ if (clipright<202){ window.status="Loading..." document.baranchorNS.document.barNS.clip.right=clipright clipright=clipright+(widthNS/(duration*20)) } else{ window.status='' clearInterval(startNS) postaction() } } window.onload=initializebar </script> <script language="JavaScript1.2"> if (document.all){ document.write('<div id="baranchor" style="position:relative;width:400px;height:20px;visibility:hidden;">') document.write('<div id="barbackground" style="width:400px;height:20px;z-index:9"></div>') document.write('<div id="bar" style="width:400px;height:20px;z-index:10"></div>') document.write('</div>') } </script> <ilayer name="baranchorNS" visibility="hide" width=400 height=20> <layer name="barbackgroundNS" bgcolor=black width=400 height=20 z-index=11 left=0 top=0> </layer> <layer name="barNS" bgcolor=blue width=400 height=20 z-index=11 left=0 top=0> </layer> </ilayer> <p align="center"><font size="2">Load.........</font> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:导航菜单显示不同信息
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
中国首台比特币ATM登陆上海 可购买不可兑换现钞
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
想玩P2P?几个您必须知道的潜规则
打车软件“明补变暗补”背后的小算盘
酷派首抓4G时机大丰收,未来份额必降无疑
新闻早8点》Facebook失手发布Snapchat类应用
让一让,小米4来了,碰见米粉请务必绕道走!
前苹果顾问批判iPhone命名:不应加S
迪信通神秘免费服务揭谜底:充电宝免费带回家
推荐阅读
更多>
“合聚变”来了 UC优视确认并入阿里巴巴
流浪汉高考状元终于找到工作:月薪3000做程序员很满意
微软最后的救命稻草Win 8份额继续上升
电信设备商淘金中国4G:华为中兴领衔
苹果优势逐渐丧失 传即将推出廉价iPhone
OPPO创始人陈明永:我们是怎么做营销的
Kindle入华遭遇国内厂商“围剿 ” 电信也参战
腾讯微信昨晚再现大规模故障 多地受到影响
高通拼抢国际芯片市场 联发科海外拓展难安心
韩国研制无线充电系统:一次可充40部手机
AMD Q1净亏1.46亿美元 转战SOC拥抱ARM求变
银联布局二维码支付,“擦边球”生态不能自救
全球最具“颠覆性”特质的公司排行榜TOP25
为啥苹果定要出廉价iPhone?都是安卓逼的
网友爆料称微软雇水军宣传主机Xbox One
承载京东C2C野心的拍拍网:梦想丰满,现实骨感
PC迎9年来出货量新低 平板电脑渐成主流
三星维修新规:Galaxy S4主板进水也收费修
工商总局开查电商“七日退货”
金山毒霸安全中心: XP退役后首个高危漏洞来了