利用ASP实现带进度条的关闭窗口
来源:互联网 作者:本站整理
摘要:下面是一个利用ASP实现带进度条的关闭窗口的函数,请供参考。% Function myloading(a)%form name="loading"div align="center"centerpinputstyle="PADDING-RI……
下面是一个利用ASP实现带进度条的关闭窗口的函数,请供参考。
<% 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 %>