当页面正在被下载时在页面上显示LOADING.....的例子
类别: JavaScript教程
<html>
<head>
<title>Loading.....</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
var url = \'index.php\';
//-->
</script>
</head>
<body scroll="no" bgcolor="#FFFFFF" onLoad="location.href = url">
<div align="center">
<br><br><br><br><br><br><br>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FF6600">Please wait while loading....</font>
</p>
<p>
<script>
<!--
if (document.layers)
document.write(\'<Layer src="\' + url + \' " VISIBILITY="hide"> </Layer>\');
else if (document.all || document.getElementById)
document.write(\'<iframe src="\' + url + \'" style="visibility: hidden;"></iframe>\');
else location.href = url;
//-->
</script>
</p>
</div>
</body>
</html>
<head>
<title>Loading.....</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
var url = \'index.php\';
//-->
</script>
</head>
<body scroll="no" bgcolor="#FFFFFF" onLoad="location.href = url">
<div align="center">
<br><br><br><br><br><br><br>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FF6600">Please wait while loading....</font>
</p>
<p>
<script>
<!--
if (document.layers)
document.write(\'<Layer src="\' + url + \' " VISIBILITY="hide"> </Layer>\');
else if (document.all || document.getElementById)
document.write(\'<iframe src="\' + url + \'" style="visibility: hidden;"></iframe>\');
else location.href = url;
//-->
</script>
</p>
</div>
</body>
</html>
- 上一篇: 利用JS在页面上动态生成直线
- 下一篇: 如何让页面只自动刷新一次
-= 资 源 教 程 =-
文 章 搜 索