这就是那个网页中跟踪下载进度的JS函数
function refreshProgress(){
var nPercentLoaded = Math.abs(movie.PercentLoaded());
bar.style.width=Math.ceil((downProgressWidth-80-100-2)*nPercentLoaded/100)+"px";
if(nPercentLoaded==100){
clearTimeout(nTimeoutId);
bar.style.width=(downProgressWidth-80-100-2)+"px";
downStatus.innerHTML="下载完毕";
}
else{
nTimeoutId = setTimeout('refreshProgress()',300)
}
}