頁面加載loading....(2)

<------------------------------------------------------------------第一種----------------------------------------------------------------------->

<script language="JavaScript">
<!--
var url = 'http://www.lanrentuku.com'; 
//這裏就是要跳到的地方
//-->
</script>
<title>網站數據加載中……</title>
</head>
<body onLoad="location.href = url">
<div style='margin-top:40;margin-left:40;margin-right:0'>
  <p> </p>
  <p align="center"> </p>
  <p align="center"> </p>
  <p align="center"> 
    <style><!--.proccess{border:0px  solid; border-color:#009900; width:2;height:15;background:eeeeee;margin:0}--></style>
  </p>
  <div style='margin-top:-20;margin-left:0;margin-right:0' align="center"> 
    <form method=post name=proccess>
      <script language=javascript>
   document.write("<br><br><br><br><table border=0 cellspacing=1 cellpadding=0  bgcolor=#000000 ><tr bgcolor=#ffffff><td  style='font:9pt Verdana;'>")
for(i=0;i<200;i++)document.write("<input class=proccess >")
      document.write("</td></tr></table><br>")
   document.write("<div align=center style='font-size:9pt;color:#660000;'>Loading……,Please Wait!</div>")
</script>
    </form>
  </div>
  <div align="center">
    <script language=JavaScript><!--
var p=0,j=0;
var c=new Array("#FF6600","#ffffff")
setInterval('proccess();',100)
function proccess(){
 document.forms.proccess.elements[p].style.background=c[j];
 p+=1;
 if(p==200){p=0;j=1-j;}}
--></script>
  </div>
</div>
<div align="center">
  <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>
</div>
</body>

 

 

<------------------------------------------------------------------第二種----------------------------------------------------------------------->

<html>
<head>
<title>正在載入...</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">
<tr>
<form name=loading>
<td align=center>
<p><font color=gray>正在載入首頁,請稍候.......</font></p>
<p>
<input type=text name=chart size=46 style="font-family:Arial;
font-weight:bolder; color:gray;
background-color:white; padding:0px; border-style:none;">
<br>
<input type=text name=percent size=46 style="font-family:Arial;
color:gray; text-align:center;
border-width:medium; border-style:none;">
<script>var bar = 0
var line = "||"
var amount ="||"
count()
function count(){
bar= bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",100);}
else
{window.location = "http://www.lanrentuku.com/";}
}
</script>
</p>
</td>
</form>
</tr>
</table>
</body>
</html>s

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章