<html xmlns="http://www.w3.org/1999/xhtml">
<head >
    <title>无标题页</title>
    
    
    <script type="text/ecmascript"  >
   
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 
{window.location = "http://www.webasp.net";} 
}</script>     
    
</head>
<body   onload="count()">
    <form  name="loading"  >
    <div>
    
    
    
    <p align=center> <font color="#0066ff" size="2" face="Arial">载入中,请稍等...</font>
    <br/> 
<input type=text name="chart" size="46" style="font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;"> 
<br /> 
<input type=text name="percent" size="47" style="color:#0066ff; text-align:center; border-width:medium; border-style:none;">     
    </div>
    </form>
</body>
</html>
为什么上面的代码在VS2008里不能运行, 我用NOTEPAD编辑是可以运行出来的, 为什么,