Code <SCRIPT language=javascript type=text/javascript> var i =0;
function setPgb(pgbID, pgbValue)
{ if ( pgbValue <=100 )
{ if (lblObj = document.getElementById(pgbID+'_label'))
{
lblObj.innerHTML ='程序加载中'+ pgbValue +'%'; // change the label value }
if ( pgbObj = document.getElementById(pgbID) )
{ var divChild = pgbObj.children[0];
pgbObj.children[0].style.width = pgbValue +"%";
}
window.status ="数据读取"+ pgbValue +"%,请稍候";
}
if ( pgbValue ==100)
window.status ="数据读取已经完成";
}
function showBar()
{
setPgb('pgbMain',i);
i++;
} </SCRIPT>
posted on
2009-05-20 10:36酷酷魔术师
阅读(559)
评论(0)
编辑收藏举报