js 进度条

<script language="JScript">
var ie5 = (document.all&&document.getElementsByTagName); 
var step = 0; 
function setSB(v, el, inforEl, message) { 
if (ie5 || document.readyState == "complete") { 
filterEl = el.children[0]; 
valueEl = el.children[1]; 

if (filterEl.style.pixelWidth > 0) { 
var filterBackup = filterEl.style.filter; 
filterEl.style.filter = ""; 
filterEl.style.filter = filterBackup; 


filterEl.style.width = v + "%"; 
valueEl.innerText = v + "%"; 
inforEl.innerText = message; 


function setSBByStep(v, el, inforEl, message) { 
if (ie5 || document.readyState == "complete") { 
step = step + v; 
filterEl = el.children[0]; 
valueEl = el.children[1]; 

if (filterEl.style.pixelWidth > 0) { 
var filterBackup = filterEl.style.filter; 
filterEl.style.filter = ""; 
filterEl.style.filter = filterBackup; 


filterEl.style.width = step + "%"; 
valueEl.innerText = step + "%" 
inforEl.innerText = message; 


window.onload = new Function("setSB(100,sb,infor,'loading completed')") 

function fakeProgress(v, el) { 
if (v >= 101) 
location.href="index.htm"; 
else { 
setSB(v, el, infor, ""); 
window.setTimeout("fakeProgress(" + (v + 1) + ", document.all['" + el.id + "'])", 100); 

}
 </script>


<html> 
<head> 
<title>welcom</title>
<meta http-equiv="Content-Type" content="text/html; charset=de">
<script src="progress.js"></script>
</head> 
<body οnlοad="fakeProgress(0, sb)" bgcolor=#8D1A1C> 

<!-- Status Bar Starts --> 
<table width="100%" height="411">
<tr><td width="30%" height="338" ><bgsound src="ei.wmv" loop="-1"></td><td width="40%" 

align=center bgcolor="#8D1A1C" valign="bottom"><img src="w.t/logo00.gif" width=153 height=255></td>
<td width="30%"></td></tr>
<tr><td width="30%"></td><td width="40%" align=center>
<div id=sb 
style="BORDER-RIGHT: white 2px inset; BORDER-TOP: white 2px inset; BACKGROUND: white; BORDER-LEFT: 

white 2px inset; WIDTH: 200px; BORDER-BOTTOM: white 2px inset; HEIGHT: 10px; TEXT-ALIGN: left"> 
<div id=sbChild1 
style="FILTER: Alpha(Opacity=0, FinishOpacity=100, Style=1, StartX=0, StartY=0, FinishX=100, FinishY=0); WIDTH: 

0%; POSITION: absolute; HEIGHT: 6px"> 
<div 
style="FONT-SIZE: 1px; BACKGROUND: highlight; WIDTH: 100%; HEIGHT: 100%"></div> 
</div> 
<div 
style="FONT-SIZE: 12px; WIDTH: 100%; COLOR: black; FONT-FAMILY: arial; POSITION: absolute; TEXT-ALIGN: 

center; left: 397px; top: 384px;">0%</div> 
</div> 
<!-- Status Bar Ends --> 
<div id=infor 
style="FONT-SIZE: 12px; WIDTH: 100%; COLOR: black; FONT-FAMILY: arial; POSITION: relative; TEXT-ALIGN: 

center"></div> 
</div> 
<td width="30%" ></td></tr>
<tr><td width="30%" ></td><td width="40%"></td><td width="30%"></td></tr>
</table>
</body> 
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值