flash进度条
<script language="JavaScript">
<!--
var nTimeoutId = setTimeout('refreshProgress()',30);
function refreshProgress()
{
var bar = document.getElementById("bar");
var movie = document.getElementById("movie");
var nPercentLoaded = movie.PercentLoaded();
bar.style.width=nPercentLoaded+"%";
bar.innerText=nPercentLoaded+"%";
if(nPercentLoaded==100){
clearTimeout(nTimeoutId)
}
else{
nTimeoutId = setTimeout('refreshProgress()',300)
}
}
//-->
</script>
movie是一个OBJECT,MS OBJECT有个PercentLoaded属性,值为OBJECT的读取百分比
<!--
var nTimeoutId = setTimeout('refreshProgress()',30);
function refreshProgress()
{
var bar = document.getElementById("bar");
var movie = document.getElementById("movie");
var nPercentLoaded = movie.PercentLoaded();
bar.style.width=nPercentLoaded+"%";
bar.innerText=nPercentLoaded+"%";
if(nPercentLoaded==100){
clearTimeout(nTimeoutId)
}
else{
nTimeoutId = setTimeout('refreshProgress()',300)
}
}
//-->
</script>
movie是一个OBJECT,MS OBJECT有个PercentLoaded属性,值为OBJECT的读取百分比
补充:flash教程,动画技术