js 进度条代码
来源:互联网 发布:怎样注册淘宝会员 编辑:程序博客网 时间:2024/04/29 05:22
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>loading</title>
</head>
<style>
<!--
#bar, #barbackground{
position:absolute;
left:0;
top:0;
background-color:blue;
}
#barbackground{
background-color:black;
}
-->
</style>
<script language="JavaScript1.2">
var duration=5
function postaction(){
document.all.baranchor.style.visibility="hidden"
document.all.percent.style.visibility="hidden"
document.location.href="http://www.tom.com"
}
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()",50)
}
if (document.layers){
widthNS=document.baranchorNS.document.barbackgroundNS.clip.width
document.baranchorNS.document.barNS.clip.right=0
document.baranchorNS.visibility="show"
startNS=setInterval("increaseNS()",50)
}
}
function increaseIE(){
bar.style.clip="rect(0 "+clipright+" auto 0)"
window.status="Loading..."
if (clipright<widthIE)
{
clipright=clipright+(widthIE/(duration*20));
document.all.percent.innerHTML="<center><font color=red>"+clipright/2 + "%</font></center>"
}
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>
<body>
<script language="JavaScript1.2">
if (document.all){
document.write('<div id="baranchor" style="position:relative;width:200px;height:20px;visibility:hidden;left:300;top:150;">')
document.write('<div id="barbackground" style="width:200px;height:20px;z-index:9"></div>')
document.write('<div id="bar" style="width:200px;height:20px;z-index:10"></div>')
document.write('</div>')
document.write('<div id="percent" style="position:relative;width:200px;height:20px;visibility:visible;left:390;top:150"></div>')
}
</script>
<ilayer name="baranchorNS" visibility="hide" width=200 height=20>
<layer name="barbackgroundNS" bgcolor=black width=200 height=20 z-index=10 left=0 top=0></layer>
<layer name="barNS" bgcolor=blue width=200 height=20 z-index=11 left=0 top=0></layer>
</ilayer>
</body>
</html>
- js的进度条代码
- js 进度条代码
- js 进度条实现代码
- js 进度条,代码实现
- 漂亮的进度条(js代码)
- 带进度条的页面js跳转代码
- js进度条
- 进度条js
- js进度条
- js进度条
- js进度条。
- js进度条
- 进度条js
- js 进度条
- JS进度条
- js 进度条
- js进度条
- jS进度条
- 云计算、云存储、云服务与我们的生活(一)
- pku2728 最优比率生成树
- CoWaitForMultipleHandles
- 云计算、云存储、云服务与我们的生活(二)
- Android内核和驱动篇-Android内核介绍
- js 进度条代码
- 云计算、云存储、云服务与我们的生活(三)
- java调用quartz问题总结
- 全业务时代运维支撑体系
- HeadFirst 设计模式学习笔记8--模板方法模式
- 在Java中使用javascript函数
- Mysql 常用数值类型整理
- Flash显示灰度图像
- VC6编译的Debug版本程序中存在的问题及解决方法