73、读取完毕才显示页面

73、读取完毕才显示页面

脚本说明:

第一步:把如下代码加入<body>区域中

<script language="JavaScript">

var url = 'http://www.7stk.com';

</script>

<div align=center>

<font class=fontbig>页面读取中请等待......<br>

</font>

<p></p><p></p>

<style><!--.proccess{border:1px solid;width:8;height:8;background:#ffffff;margin:3}--></style>

<p></p><p></p>

<div align="center">

<form method=post name=proccess>

<script language=javascript>

for(i=0;i<30;i++)document.write("<input class=proccess>")

</script>

</form>

</div></td></tr></table>

<div align="center">

<script language=JavaScript>var p=0,j=0;

var c=new Array("lightskyblue","white")

setInterval('proccess();',100)

function proccess(){

document.forms.proccess.elements[p].style.background=c[j];

p+=1;

if(p==30){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>中的内容改为:

<body  onLoad="location.href = url;" style='overflow:hidden;overflow-y:hidden'>

 

Write a comment

Comments: 0