asp.net新手, 高手进来。js问题。
<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>
这是一个网页进度条的javascript 代码, 为什么我用VS2008运行不了呢,提示:Microsoft JScript 运行时错误: 'document.loading.chart' 为空或不是对象 , 用NOTPAD另存为AA.HTML 打开可以运行, 为什么?
--------------------编程问答-------------------- document.loading???
没听说过 --------------------编程问答-------------------- js位置是不是不对啊? --------------------编程问答--------------------
type="text/ecmascript" 这个是js通用的吗? --------------------编程问答-------------------- 好像type不对吧。
补充:.NET技术 , ASP.NET