当页面正在被下载时在页面上显示loading.....的例子

发表于:2007-06-30来源:作者:点击数: 标签:
html head titleLoading...../title meta http-equiv=Content-Type content=text/html; charset=gb2312 script language= Java Script !-- var url = @#index. php @#; //-- /script /head body scroll=no bgcolor=#FFFFFF onLoad=location.href = url div al
<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>

原文转自:http://www.ltesting.net