带进度条的关闭窗口
发布时间:2006-5-29 10:21:24   收集提供:shendata

<% Function myloading(a)%>
<form name="loading">
<div align="center"><center><p><input
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px; COLOR: red; BORDER-TOP-STYLE: none; PADDING-TOP: 0px; FONT-FAMILY: Arial; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: yellow; BORDER-BOTTOM-STYLE: none"
size="46" name="chart"> <br>
<input
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: rgb(138,134,134); BORDER-BOTTOM: medium none; TEXT-ALIGN: center"
size="46" name="percent">

<script>
var bar = 0
var line = "||"
var amount ="||"
count()
function count()
{
bar= bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",100);}
else
<%if a="closeit" then%>
{ setTimeout("closeme();",10); }
<%else%>
{ setTimeout("window.go(-1);",10); }
<%end if%>
}
function closeme(){
self.focus();
self.close();
return false;
}
</script>
</p>
</center></div>
</form>
<% End Function %>

 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50