jokke 发表于 2008-7-24 16:59:09

页面loading收集

样式一:<BR><BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;title&gt;正在载入...&lt;/title&gt;<BR>&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;<BR>&lt;/head&gt;<BR>&lt;body bgcolor="#FFFFFF" leftmargin="0" topmargin="0"&gt;<BR>&lt;table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%"&gt;<BR>&lt;tr&gt; <BR>&lt;form name=loading&gt;<BR>&lt;td align=center&gt; <BR>&lt;p&gt;&lt;font color=gray&gt;正在载入首页,请稍候.......&lt;/font&gt;&lt;/p&gt;<BR>&lt;p&gt; <BR>&lt;input type=text name=chart size=46 style="font-family:Arial; <BR>font-weight:bolder; color:gray;<BR>background-color:white; padding:0px; border-style:none;"&gt;<BR>&lt;br&gt;<BR>&lt;input type=text name=percent size=46 style="font-family:Arial; <BR>color:gray; text-align:center; <BR>border-width:medium; border-style:none;"&gt;<BR>&lt;script&gt;var bar = 0 <BR>var line = "||" <BR>var amount ="||" <BR>count() <BR>function count(){ <BR>bar= bar+2 <BR>amount =amount + line <BR>document.loading.chart.value=amount <BR>document.loading.percent.value=bar+"%" <BR>if (bar&lt;99) <BR>{setTimeout("count()",100);} <BR>else <BR>{window.location = "<A title=http://www.cnbruce.com/ href="http://www.93you.com/" target=_blank><FONT color=#0000ff>http://www.93you.com/</FONT></A>";} <BR>}<BR>&lt;/script&gt;<BR>&lt;/p&gt;<BR>&lt;/td&gt;<BR>&lt;/form&gt;<BR>&lt;/tr&gt;<BR>&lt;/table&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;<BR><BR>样式二:<BR><BR>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;<BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;title&gt;CN-Bruce&lt;/title&gt;<BR>&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;<BR>&lt;/head&gt;<BR><BR>&lt;body&gt;<BR>&lt;style type="text/css"&gt;<BR>#divLoadCont{position:absolute; z-index:500; left:0; top:0; width:100%; height:98%; clip:rect(0,100%,100%,0); background-color:transparent; layer-background-color:white; }<BR>#divLoad1{position:absolute; layer-background-color:silver; background-color:silver}<BR>#divLoad2{position:absolute; left:0; top:0; layer-background-color:navy; background-color:navy}<BR>#divLoadText{position:absolute; background-color:transparent; font-family:arial,helvetica; color:Navy; font-size:14px; } <BR>&lt;/style&gt;<BR>&lt;script language="JavaScript" type="text/javascript"&gt;<BR>function lib_bwcheck(){ //Browsercheck (needed)<BR>this.ver=navigator.appVersion<BR>this.agent=navigator.userAgent<BR>this.dom=document.getElementById?1:0<BR>this.opera5=this.agent.indexOf("Opera 5")&gt;-1<BR>this.ie5=(this.ver.indexOf("MSIE 5")&gt;-1 &amp;&amp; this.dom &amp;&amp; !this.opera5)?1:0; <BR>this.ie6=(this.ver.indexOf("MSIE 6")&gt;-1 &amp;&amp; this.dom &amp;&amp; !this.opera5)?1:0;<BR>this.ie4=(document.all &amp;&amp; !this.dom &amp;&amp; !this.opera5)?1:0;<BR>this.ie=this.ie4||this.ie5||this.ie6<BR>this.mac=this.agent.indexOf("Mac")&gt;-1<BR>this.ns6=(this.dom &amp;&amp; parseInt(this.ver) &gt;= 5) ?1:0; <BR>this.ns4=(document.layers &amp;&amp; !this.dom)?1:0;<BR>this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)<BR>return this<BR>}<BR>var bw=new lib_bwcheck()<BR>numImages=10 //速度<BR>loaderWidth=300 //进度条长度<BR><BR>currentImg=0<BR>function lib_doc_size(){ <BR>this.x=0;this.x2=bw.ie &amp;&amp; document.body.offsetWidth-20||innerWidth||0;<BR>this.y=0;this.y2=bw.ie &amp;&amp; document.body.offsetHeight-5||innerHeight||0;<BR>if(!this.x2||!this.y2) return message('Document has no width or height') <BR>this.x50=this.x2/2;this.y50=this.y2/2;<BR>return this;<BR>}<BR>function lib_obj(obj,nest){ <BR>nest=(!nest) ? "":'document.'+nest+'.'<BR>this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all:bw.ns4?eval(nest+"document.layers." +obj):0; <BR>this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; <BR>this.ref=this.css<BR>this.w=this.evnt.offsetWidth||this.css.clip.width||<BR>this.ref.width||this.css.pixelWidth||0; <BR>return this<BR>}<BR>lib_obj.prototype.moveIt = function(x,y){<BR>this.x=x;this.y=y; this.css.left=x;this.css.top=y<BR>}<BR>lib_obj.prototype.clipTo = function(t,r,b,l,setwidth){ <BR>this.ct=t; this.cr=r; this.cb=b; this.cl=l<BR>if(bw.ns4){<BR>this.css.clip.top=t;this.css.clip.right=r<BR>this.css.clip.bottom=b;this.css.clip.left=l<BR>}else{<BR>if(t&lt;0)t=0;if(r&lt;0)r=0;if(b&lt;0)b=0;if(b&lt;0)b=0<BR>this.css.clip="rect("+t+","+r+","+b+","+l+")";<BR>if(setwidth){this.css.pixelWidth=this.css.width=r; <BR>this.css.pixelHeight=this.css.height=b}<BR>}<BR>}<BR>var oLoad2<BR>function startLoading(){<BR>page=new lib_doc_size()<BR>oLoadCont=new lib_obj('divLoadCont')<BR>oLoad=new lib_obj('divLoad1','divLoadCont')<BR>oLoad2=new lib_obj('divLoad2','divLoadCont.document.divLoad1')<BR>oLoadText=new lib_obj('divLoadText','divLoadCont.document.divLoad1')<BR>oLoad.moveIt(page.x50-loaderWidth/2,page.y50-20)<BR>oLoadText.moveIt(loaderWidth/2 - oLoadText.w/2,10)<BR>oLoad.clipTo(0,loaderWidth,40,0,1)<BR>oLoad2.per = loaderWidth/numImages<BR>}<BR>function loadIt(ok){<BR>currentImg++<BR>if(oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1)<BR>if(!ok){<BR>oLoadCont.css.visibility='hidden'<BR>oLoadCont=null; oLoad1=null; oLoad2=null;<BR>}<BR>}<BR>function loadIt_display(ok){<BR>currentImg++<BR>if(oLoad2) oLoad2.clipTo(0,oLoad2.per*currentImg,40,0,1)<BR>if(currentImg&lt;=numImages) setTimeout("loadIt_display(1)",200)<BR>else{<BR>oLoadCont.css.visibility='hidden'<BR>window.location="<A title=http://www.cnbruce.com/ href="http://www.93you.com/" target=_blank><FONT color=#0000ff>http://www.93you.com/</FONT></A>"<BR>}<BR>}<BR>&lt;/script&gt;<BR>&lt;div id="divLoadCont"&gt;<BR>&lt;div id="divLoad1"&gt;<BR>&lt;div id="divLoad2"&gt;&lt;/div&gt;&lt;br&gt;<BR>&lt;div id="divLoadText"&gt;Loading...&lt;/div&gt;<BR>&lt;/div&gt;<BR>&lt;/div&gt;<BR>&lt;script&gt;<BR>startLoading()<BR>//onload=loadIt; //- LEAVE THIS LINE WHILE TESTING. UNCOMMENT WHEN READY<BR>loadIt_display(1) //LEAVE THIS LINE WHILE TESTING. Delete WHEN READY<BR>&lt;/script&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;<BR><BR>样式三:<BR><BR>&lt;script language="JavaScript"&gt; <BR>&lt;!-- <BR>var url = 'index.asp'; <BR>//这里就是要跳到的地方 <BR>//--&gt; <BR>&lt;/script&gt; <BR>&lt;title&gt;网站数据加载中……&lt;/title&gt; <BR><BR>&lt;/head&gt; <BR><BR>&lt;body onLoad="location.href = url"&gt; <BR><BR>&lt;div style='margin-top:40;margin-left:40;margin-right:0'&gt; <BR>&lt;p&gt; &lt;/p&gt; <BR>&lt;p align="center"&gt; &lt;/p&gt; <BR>&lt;p align="center"&gt; &lt;/p&gt; <BR>&lt;p align="center"&gt; <BR>&lt;style&gt;&lt;!--.proccess{border:0px solid; border-color:#009900; width:2;height:15;background:eeeeee;margin:0}--&gt;&lt;/style&gt; <BR>&lt;/p&gt; <BR>&lt;div style='margin-top:-20;margin-left:0;margin-right:0' align="center"&gt; <BR>&lt;form method=post name=proccess&gt; <BR>&lt;script language=javascript&gt; <BR>document.write("&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;table border=0 cellspacing=1 cellpadding=0 bgcolor=#000000 &gt;&lt;tr bgcolor=#ffffff&gt;&lt;td style='font:9pt Verdana;'&gt;")<BR>for(i=0;i&lt;200;i++)document.write("&lt;input class=proccess &gt;") <BR>document.write("&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;")<BR>document.write("&lt;div align=center style='font-size:9pt;color:#660000;'&gt;Loading……,Please Wait!&lt;/div&gt;")<BR>&lt;/script&gt; <BR><BR>&lt;/form&gt; <BR>&lt;/div&gt; <BR>&lt;div align="center"&gt; <BR>&lt;script language=JavaScript&gt;&lt;!-- <BR>var p=0,j=0; <BR>var c=new Array("#FF6600","#ffffff") <BR>setInterval('proccess();',100) <BR>function proccess(){ <BR>document.forms.proccess.elements.style.background=c; <BR>p+=1; <BR>if(p==200){p=0;j=1-j;}} <BR>--&gt;&lt;/script&gt; <BR>&lt;/div&gt; <BR>&lt;/div&gt; <BR>&lt;div align="center"&gt; <BR>&lt;script&gt; <BR>&lt;!-- <BR>if (document.layers) <BR>document.write('&lt;Layer src="' + url + ' " VISIBILITY="hide"&gt; &lt;/Layer&gt;'); <BR>else if (document.all || document.getElementById) <BR>document.write('&lt;iframe src="' + url + '" style="visibility: hidden;"&gt;&lt;/iframe&gt;'); <BR>else location.href = url; <BR>//--&gt; <BR>&lt;/script&gt; <BR>&lt;/div&gt; <BR>&lt;/body&gt;<BR><BR>样式四:<BR><BR>&lt;SCRIPT&gt;cnease=window.open("","etangWHSAD","top=2000");cnease.close();<BR>focus()<BR>self.resizeTo(800,600)<BR>self.moveTo(-3,-3)&lt;/SCRIPT&gt;<BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;title&gt;LemongTree.Net&lt;/title&gt;<BR>&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;<BR>&lt;style type="text/css"&gt;<BR>td,form,select,input,textarea,body {font-family: 宋体;font-color:#000000;font-size: 12px;line-height:150%;letter-spacing:2px}<BR>a:link { font-size: 9pt; text-decoration: none; color: #666666}<BR>a:visited { font-size:9pt; text-decoration: none; color: #666666}<BR>a:hover { text-decoration: none; font-size: 9pt; color: #666666}<BR>a:active { font-size: 9px; text-decoration: none; color: #666666}<BR>&lt;/style&gt;<BR>&lt;script&gt;<BR>var url='<A title=http://www.cnbruce.com/&amp;#39;; href="http://www.93you.com/&amp;#39;;" target=_blank><FONT color=#0000ff>http://www.93you.com/&amp;#39;;</FONT></A><BR>&lt;/script&gt;<BR>&lt;/head&gt;<BR>&lt;body onLoad="location.href=url;" style='overflow:hidden;overflow-y:hidden'&gt;<BR>&lt;div align=center&gt;<BR>&lt;table height=70% valign=middle align=center&gt;<BR>&lt;tr&gt;<BR>&lt;td align="center" disabled&gt;<BR>&lt;!-- Displaytext--&gt;<BR>&lt;div align="center"&gt;正在进入&lt;/div&gt;<BR>&lt;p&gt;&lt;/p&gt;<BR>&lt;font class=fontbig&gt;页面读取中,请等待......&lt;br&gt;<BR>&lt;/font&gt;<BR>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;<BR>&lt;style&gt;&lt;!--.proccess{border:1px solid;width:8;height:8;background:#ffffff;margin:3}--&gt;&lt;/style&gt;<BR>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;<BR>&lt;div align="center"&gt;<BR>&lt;form method=post name=proccess&gt;<BR>&lt;script language=javascript&gt;<BR>for(i=0;i&lt;30;i++)document.write("&lt;input class=proccess&gt;")<BR>&lt;/script&gt;<BR>&lt;/form&gt;<BR>&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<BR>&lt;div align="center"&gt;<BR>&lt;script language=JavaScript&gt;var p=0,j=0;<BR>var c=new Array("lightskyblue","white")<BR>setInterval('proccess();',100)<BR>function proccess(){<BR>document.forms.proccess.elements.style.background=c;<BR>p+=1;<BR>if(p==30){p=0;j=1-j;}}<BR>--&gt;&lt;/script&gt;<BR>&lt;/div&gt;<BR>&lt;/div&gt;<BR>&lt;div align="center"&gt;<BR>&lt;script&gt;<BR>&lt;!--<BR>if (document.layers)<BR>document.write('&lt;Layer src="../3/' + url + ' " VISIBILITY="hide"&gt; &lt;/Layer&gt;');<BR>else if (document.all || document.getElementById)<BR>document.write('&lt;iframe src="../3/' + url + '" style="visibility: hidden;"&gt;&lt;/iframe&gt;');<BR>else location.href=url;<BR>//--&gt;<BR>&lt;/script&gt;<BR>&lt;/div&gt;<BR><BR>样式五:<BR><BR>&lt;body&gt;<BR>&lt;div id=process&gt;LOADING&lt;/div&gt;<BR>&lt;script&gt;<BR>var num=0;<BR>function mypro()<BR>{<BR>num++;<BR>myarray=new Array('#494949','#646464','#747474','#888888','#969696','#A8A8A8','#B6B6B6','#C6C6C6','#D7D7D7','#E1E1E1','#F0F0F0','#F9F9F9')<BR>process.style.color=myarray<BR>process.innerText=process.innerText+'&gt;&gt;';<BR>if(num&lt;12) {setTimeout("mypro()",1000);}<BR>else {window.open("<A title=http://www.cnbruce.com href="http://www.93you.com" target=_blank><FONT color=#0000ff>http://www.93you.com</FONT></A>","new");}<BR>}<BR>mypro();<BR>&lt;/script&gt;<BR><BR><A title=http://www.blueidea.com/bbs/newsdetail.asp?id=1724872&amp;posts=current href="http://www.blueidea.com/bbs/newsdetail.asp?id=1724872&amp;posts=current" target=_blank><FONT color=#0000ff>全文演示见这里</FONT></A>

﹟#.丑闻﹣ 发表于 2008-7-25 15:30:56

唉咱这编码水平   根本看不懂..

yang 发表于 2008-7-31 09:27:02

不知道为什么有好多人喜欢将table里面又加div,这有什么用吗?

kun404796045 发表于 2009-12-27 18:01:21

3# yang


加上div之后就可以设置排版内容置顶了
页: [1]
查看完整版本: 页面loading收集

唯一的遗憾是我们连一张合照都没有。