狀態(tài)欄中顯示頁面載入進度
發(fā)布時間:2008-12-20 閱讀數(shù): 次 來源:網(wǎng)樂原科技
要完成此效果把如下代碼加入到區(qū)域中
<script language=VBScript>
Dim Bar, Line, SP
Bar = 0
Line = "|"
SP = 100
Function Window_onLoad()
Bar = 95
SP = 10
End Function
Function Count()
If Bar < 100 Then
Bar = Bar + 1
Window.Status = "已成功下載" & Bar & "%" & " " & String(Bar, Line)
setTimeout "Count()", SP
Else
Window.Status = "歡迎你的光臨?。。?
Document.Body.Style.Display = ""
End If
End Function
Call Count()
</script>