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

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

装载页面进度条

摘要: 装载页面进度条


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.csdn.net";
}

}

</script>



</td>

</tr>

</table>

</body>

以上代码拷贝即可使用

</td> </tr> <tr> <td vAlign=top align=left height="100%">
↑返回目录
前一篇: 网页上内容导出到word里
后一篇: IE6无提示关闭窗口,不是利用activeX