带进度条的关闭窗口,绝对有用!并可根据需要改写。
发表于:2007-06-30来源:作者:点击数:
标签:
% Function myloading(a)% form name=loading div align=centercenterpinput style=PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px; COLOR: red; BORDER-TOP-STYLE: none; PADDING-TOP: 0px; FONT-FA MI LY: Arial; BORDE
<% 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-FA
MILY: 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 %>
原文转自:http://www.ltesting.net