<html>
<head>
<title>页面正在载入</title>
<script language="javascript">
document.write('<div id="loadDiv" style="font-size: 12px;left: 50%;position: absolute;top: 40%;"><img src="loading.gif"/>Loading</div>');
function window.onload()
{
hiddenDiv.style.display=""; //显示页面内容
loadDiv.removeNode(true);
}
</script>
</head>
<body>
<div id="hiddenDiv" style="display:none"><!--将内容放在此层中-->
<iframe src="http://www.qq.com/" width="100%" height="768px"></iframe>
</div>
</body>
</html>
<head>
<title>页面正在载入</title>
<script language="javascript">
document.write('<div id="loadDiv" style="font-size: 12px;left: 50%;position: absolute;top: 40%;"><img src="loading.gif"/>Loading</div>');
function window.onload()
{
hiddenDiv.style.display=""; //显示页面内容
loadDiv.removeNode(true);
}
</script>
</head>
<body>
<div id="hiddenDiv" style="display:none"><!--将内容放在此层中-->
<iframe src="http://www.qq.com/" width="100%" height="768px"></iframe>
</div>
</body>
</html>
下载:loading.rar