站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题一则装载页面进度条

一则装载页面进度条

摘要: 一则装载页面进度条
<tr> <td>

loadpage

</head>

<body>

<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">

<tr>

<form name=loading>

   <td align=center>

    

&nbsp;

    

    


     <input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:#00FF00; background-color:black; padding:0px; border-style:none;">
     

     

     <input type=text name=percent size=46 style="font-family:Arial; color:#00FF00; text-align:center; border-width:medium; border-style:none;" class="unnamed1">
     

     

     
     <script>
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
{
alert("载入完毕")
window.location = "http://www.webjx.com";
}

}

</script>
     
     


    
         </td>

</tr>

</table>

</body>

以上代码拷贝即可使用

</td> </tr> </table>
↑返回目录
前一篇: 面向对象的JavaScript编程
后一篇: IE5中用JavaScript跨frame加option问题