下面代码我是用来做加载flash等待的.因为有些flash没有进度条,一进去就一片白.不知道的还以为打不开.有这个进度条绝对是整个加载完了才显示.强......
<html>
<head>
<META http-equiv=Content-Type content="text/html;
charset=gb2312">
<META HTTP-EQUIV="pragma"
CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control"
CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires"
CONTENT="0">
<title>预加载中....</title>
<style type="text/css">
<!--
.p { font-family: "MS Shell Dlg";
font-size: 12px}
-->
</style>
</head>
<body onLoad="location.href = url"
oncontextmenu="window.event.returnValue=false"
ondragstart="window.event.returnValue=false"
onselectstart="event.returnValue=false">
<script language="JavaScript">
<!--
var url = 'http://www.niudun.com';
function jump(){
location=url;
return true;
}
//-->
</script>
<div align="center">
<center>
<table border="1"
cellpadding="0"
cellspacing="0"
width="401"
bordercolorlight="#808080"
bordercolordark="#FFFFFF">
<tr>
<td bgcolor="#F5F5F5"
width="402"> <div id=process style="width: 400;
height: 10"> </div>
<script>
var num=0;
function mypro()
{
num++;
process.innerHTML=process.innerHTML+'<font color="#0000FF">■</font>';
if(num<26){setTimeout("mypro()",200);}else
{process.innerHTML="";num=0;mypro()}
}
mypro();
</script>
</td> <script>
<!--
if (document.layers)
do
cument.write('<Layer src="' + url + ' "
VISIBILITY="hide"> </Layer>');
else
if (document.all ||do
cument.getElementById)
do
cument.write('<iframe src="' + url + '"
style="visibility: hidden;"></iframe>');
else
location.href = url;
//-->
</script>
</tr>
</table>
</center>
</div>
<p align="center"><font class="p"><b>网站正在装载中,请稍候......</b></font></p>
</body>
</html>