Loading页的实现代码

    用了几种Loading页的代码,还是算这个好用了。真的佩服牛人们的思想。有的说用DIV来实现遮盖后面的东西,当FORM加载完后,执行CLOSE()d的JS函数。我试验了几次,效果不是那么好。也主要是由于我吧东西都放在我本地,感觉不到速度的差异吧。下面我给出我用到的那段代码,如果朋友需要的话,就拿去用吧!

ExpandedBlockStart.gif ContractedBlock.gif   < script  language ="JavaScript" > dot.gif  
InBlock.gif 
<!-- 
InBlock.gif 
var url = 'http://127.0.0.1';  
InBlock.gif
 //这里就是要跳到的地方 
InBlock.gif
 //--> 
ExpandedBlockEnd.gif
 
</ script >  
None.gif 
< title > 网站数据加载中…… </ title >  
None.gif
</ head >  
None.gif
< body  onLoad ="location.href = url" >  
None.gif
< div  style ='margin-top:40;margin-left:40;margin-right:0' >  
None.gif   
< p >   </ p >  
None.gif   
< align ="center" >   </ p >  
None.gif   
< align ="center" >   </ p >  
None.gif   
< align ="center" >   
ExpandedBlockStart.gifContractedBlock.gif     
< style > dot.gif <!--.proccess{dot.gif}{border:0px  solid; border-color:#009900; width:2;height:15;background:eeeeee;margin:0}--> </ style >  
None.gif   
</ p >  
None.gif   
< div  style ='margin-top:-20;margin-left:0;margin-right:0'  align ="center" >   
None.gif     
< form  method =post  name =proccess >  
ExpandedBlockStart.gifContractedBlock.gif       
< script  language =javascript > dot.gif  
InBlock.gif    document.write(
"<br><br><br><br><table border=0 cellspacing=1 cellpadding=0  bgcolor=#000000 ><tr bgcolor=#ffffff><td  style='font:9pt Verdana;'>")
InBlock.gif 
for(i=0;i<200;i++)document.write("<input class=proccess >"
InBlock.gif       document.write(
"</td></tr></table><br>")
InBlock.gif    document.write(
"<div align=center style='font-size:9pt;color:#660000;'>Loading……,Please Wait!</div>")
ExpandedBlockEnd.gif 
</ script >  
None.gif    
</ form >  
None.gif   
</ div >  
None.gif   
< div  align ="center" >  
ExpandedBlockStart.gifContractedBlock.gif     
< script  language =JavaScript > dot.gif <!-- 
InBlock.gif 
var p=0,j=0
InBlock.gif 
var c=new Array("#FF6600","#ffffff"
InBlock.gif setInterval('proccess();',
100
ExpandedSubBlockStart.gifContractedSubBlock.gif 
function proccess()dot.gif
InBlock.gif  document.forms.proccess.elements[p].style.background
=c[j]; 
InBlock.gif  p
+=1
ExpandedSubBlockStart.gifContractedSubBlock.gif  
if(p==200)dot.gif{p=0;j=1-j;}}
 
ExpandedBlockEnd.gif 
-->
</ script >  
None.gif   
</ div >  
None.gif 
</ div >  
None.gif 
< div  align ="center" >  
ExpandedBlockStart.gifContractedBlock.gif   
< script > dot.gif  
InBlock.gif 
<!-- 
InBlock.gif 
if (document.layers)  
InBlock.gif   document.write('
<Layer src="' + url + ' " VISIBILITY="hide"> </Layer>');  
InBlock.gif   
else if (document.all || document.getElementById)  
InBlock.gif    document.write('
<iframe src="' + url + '" style="visibility: hidden;"></iframe>');  
InBlock.gif 
else location.href = url; 
InBlock.gif 
//--> 
ExpandedBlockEnd.gif
 
</ script >  
None.gif 
</ div >  
None.gif 
</ body >
None.gif

转载于:https://www.cnblogs.com/mgod/archive/2007/04/23/724286.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值