http://www.thinksaas.cn/group/topic/19149/
//进度条更新函数
function go(currentWidth)
{
var objbar=document.getElementByIdx_x_x_x("bar");
objbar.style.width= parseInt(objbar.style.width) + 1 + "%";
objbar.innerHTML = objbar.style.width;
if(objbar.style.width == currentWidth|| objbar.style.width="100%")
{
window.clearInterval(bar);
}
}
//setInterval的返回值(必须在外面全局定义)
var bar="";
//调用进度条的函数
function FlushBar()
{
currentWidth=Math.round(ExecNum/CaseNum*100)+"%";//百分比(小数点后零位)
bar= window.setInterval("go(currentWidth)",50);
}function
{
var
objbar.style.width=
objbar.innerHTML
if(objbar.style.width
{
window.clearInterval(bar);
}
}
//setInterval的返回值(必须在外面全局定义)
var
//调用进度条的函数
function FlushBar()
{
currentWidth=Math.round(ExecNum/CaseNum*100)+"%";//百分比(小数点后零位)
bar=