加载页面显示之前提示“正在加载页面,请稍后。。“
<html>
<head>
<title>梅花雨的页面加载</title>
<script language=javascript><!--
document.write('<div id=loadDiv style="padding-top: 50; padding-left: 50">'+
'正在加载页面,请稍候<span id="loading"></span></div>');
var setInterval1 = setInterval("loading.innerText += '.'", 300);
var setInterval2 = setInterval("loading.innerText = ''", 15000);
function window.onload()
{
hiddenDiv.style.display=""; //显示页面内容
loadDiv.removeNode(true);
clearInterval(setInterval1);
clearInterval(setInterval2);
}
// --></script>
</head>
<body>
<div id=hiddenDiv style="display: none">
<img src=http://www.csdn.net/images/homeimage/csdn.gif>
<!-- 将你的网页所有内容都放在这个div之内即可 -->
</div>
</body>
</html>