哪位老师帮我详细解一下这段代码?

来源:百度知道 编辑:UC知道 时间:2024/05/28 19:18:12
这段代码是起什么作用,为什么要这样跳转??

=====================================
<html>

<head>
<META NAME="ROBOTS" CONTENT="NONE">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>..I Love Beijing2008 Home</title>
</head>

<body>
<form name=loading>
<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">
<tr>
<TD align="center" valign="top">
<p><FONT color="000000" face="Arial"><BR>
</FONT><FONT color="#FF0000" face="Arial"></FONT></p>
<p><input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:green;

background-colorEAEAEA; padding:0px; border-style:none;">

查baidu吧,这个没什么讲的。html代码不用太清楚,你主要是要懂得下面的代码

<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()",200);}
else
{window.location = "http://baidu.com";;}
}
</script>