var bar = 0 var line = "||||||||||" var amount ="||||||||||" count() function count(){ bar= bar+10 amount =amount + line document.loading.chart.value=amount document.loading.percent.value=bar+"%" if (bar<99) {setTimeout("count()",100);} else {window.location = "index.htm";} } </SCRIPT> </P></DIV></FORM> <DIV align=center> <P> </P></DIV></TR></TBODY></TABLE></BODY></HTML> 看看这个效果
<script language=JavaScript>
document.write("<a href='webstat/index.asp'>");
document.write("<img src='webstat/count.asp?Referer=lib.hnu.net.cn&Width="+escape(screen.width)+"&Height="+escape(screen.height)+"' border=0 width=1 height=1>");
document.write("</a>");
</script><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>页面加载中,请稍候...</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>.text {
FONT-SIZE: 12px; LINE-HEIGHT: 130%; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
</STYLE><META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<P align=center><FONT class=text><BR><BR><BR><BR><BR><BR><BR><FONT
color=#adadad>页面加载中,请稍候</FONT></FONT><font color="#adadad" class="text">……</font></P>
<TABLE bordercolorlight="#0000FF" border="0" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
<TBODY>
<TR>
<TD width=740>
<P align=center>
<P align=center>
<FORM name=loading>
<DIV align=center>
<P><INPUT
style="font-weight: bolder; color: #0000FF; font-family: Arial; background-color: white; font-color: red; border: 4 solid #FF0000; padding: 0px"
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 language="">
var bar = 0
var line = "||||||||||"
var amount ="||||||||||"
count()
function count(){
bar= bar+10
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",100);}
else
{window.location = "index.htm";}
}
</SCRIPT>
</P></DIV></FORM>
<DIV align=center>
<P> </P></DIV></TR></TBODY></TABLE></BODY></HTML>
看看这个效果