欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

網(wǎng)頁加載時頁面顯示進度條加載完成之后顯示網(wǎng)頁內(nèi)容

 更新時間:2012年12月23日 16:59:15   作者:  
網(wǎng)頁加載時頁面顯示進度條(加載完成時顯示網(wǎng)頁內(nèi)容),這種效果在瀏覽網(wǎng)頁很常見,本文也介紹一種實現(xiàn)方法,需要了解的朋友可以參考下
現(xiàn)在網(wǎng)上有很多網(wǎng)頁加載進度條 ,但大多都是時間固定的。
下面的當查詢大量數(shù)據(jù)時,網(wǎng)頁加載較慢,在網(wǎng)頁加載時,顯示進度條,當網(wǎng)頁加載完成時,進度條消失,顯示網(wǎng)頁已經(jīng)加載完成的內(nèi)容。
復制代碼 代碼如下:

<html>
<script language=VBScript>
Dim Bar, SP
Bar = 0
SP = 100
Function Window_onLoad()
Bar = 95
SP = 10
End Function
Function Count()
if Bar < 100 Then
Bar = Bar + 1
setTimeout "Count()", SP
else
document.getElementById("jdt").style.display="none"
document.getElementById("content").style.display=""
end if
End Function
Call Count()
</script>
<body>
<div id="jdt" >此處顯示進度條,也可以放一張動態(tài)圖片</div>
<div id="content" style="display:none">網(wǎng)頁真正顯示的內(nèi)容</div>
</body>
</html>

----------------------------------------------------
最簡單的就是放圖片,網(wǎng)頁加載完成隱藏圖片,顯示網(wǎng)頁內(nèi)容
復制代碼 代碼如下:

<body onLoad="loadDiv.style.display='none';" style="margin:0px;">
<style type="text/css">
#loadDiv {
position:absolute;
z-index:999;
width:expression(document.body.clientWidth);
height:expression(document.body.clientHeight);
background-color:#FFFFFF;
text-align:center;
padding-top:200px;
}
</style>
<div id="loadDiv"><img src="http://www.51ajax.com/images/rss/loading.gif">&nbsp;Loading...</div>
<iframe src="http://505551735.qzone.qq.com/" >
</iframe>
</body>

-------------------------------------------------------
復制代碼 代碼如下:

<html>
<script language=JavaScript>
function Loaded()
{
document.getElementById("loadDiv").style.display="none"
document.getElementById("content").style.display=""
}
</script>
<body onLoad="Loaded()">
<div id="loadDiv" style="display:block"><img src="http://www.51ajax.com/images/rss/loading.gif">&nbsp;Loading...</div>
<iframe id="content" style="display:none" src="">

相關(guān)文章

最新評論