AL8 Forum
   登錄註冊幫助


標題: 【轉帖】網頁載入進度bra
 NTjames
 0027106
Rank: 3Rank: 3Rank: 3
點擊查看 NTjames 的詳細資料

頭銜: Conqueror

帖子: 281

精華: 0

積分: 2100 點

現金: 2 元

存款: 181 元

閱讀權限: 20

註冊: 2005-7-25

狀態: 離線
 
發表於 2005-11-26 10:35  資料  個人空間  短消息  加為好友 
【轉帖】網頁載入進度bra

在header.htm里
找:

在下面加上:
<!---測試加載進度條---->
<SCRIPT LANGUAGE="JavaScript">
<!--
//***********默認設置定義.*********************
tPopWait=0;//停留tWait豪秒後顯示提示。
tPopShow=5000;//顯示tShow豪秒後關閉提示
showPopStep=20;
popOpacity=99;

//***************內部變量定義*****************
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;

document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText { font-family: <%=fontfamily%>; background-color: #ffffff; color:#ff0000;border: 1px #00ff00 solid; font-size: <%=fontsize%>; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 3px; padding-bottom: 1px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");
function showPopupText(){
var o=event.srcElement;
  MouseX=event.x;
  MouseY=event.y;
  if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
  if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
  if(o.dypop!=sPop) {
          sPop=o.dypop;
          clearTimeout(curShow);
          clearTimeout(tFadeOut);
          clearTimeout(tFadeIn);
          clearTimeout(tFadeWaiting);     
          if(sPop==null || sPop=="") {
              dypopLayer.innerHTML="";
              dypopLayer.style.filter="Alpha()";
              dypopLayer.filters.Alpha.opacity=0;     
              }
          else {
              if(o.dyclass!=null) popStyle=o.dyclass
                  else popStyle="cPopText";
              curShow=setTimeout("showIt()",tPopWait);
          }
  }
}

function showIt(){
      dypopLayer.className=popStyle;
      dypopLayer.innerHTML=sPop;
      popWidth=dypopLayer.clientWidth;
      popHeight=dypopLayer.clientHeight;
      if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
          else popLeftAdjust=0;
      if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
          else popTopAdjust=0;
      dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
      dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
      dypopLayer.style.filter="Alpha(Opacity=0)";
      fadeOut();
}

function fadeOut(){
  if(dypopLayer.filters.Alpha.opacity<popOpacity) {
      dypopLayer.filters.Alpha.opacity+=showPopStep;
      tFadeOut=setTimeout("fadeOut()",1);
      }
      else {
          dypopLayer.filters.Alpha.opacity=popOpacity;
          tFadeWaiting=setTimeout("fadeIn()",tPopShow);
          }
}

function fadeIn(){
  if(dypopLayer.filters.Alpha.opacity>0) {
      dypopLayer.filters.Alpha.opacity-=1;
      tFadeIn=setTimeout("fadeIn()",1);
      }
}
document.onmouseover=showPopupText;
// -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
function openwin(URL)
{ showModalDialog(URL,"","dialogWidth:10px;status:no;dialogHeight:10px;resizable:no");
}
function news(URL)
{ window.open(URL,"news","toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=600,height=430,left=0,top=0");
}
function art(URL1)
{ window.open(URL1,"art","toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=650,height=430,left=0,top=0");
}
function down(URL2)
{ window.open(URL2,"down","toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=500,height=400,left=0,top=0");
}
function photo(URL3)
{ window.open(URL3,"photo","toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=760,height=580,left=0,top=0");
}
function link()
{win = window.open("","link","width=400,height=150")}
function vote()
{win = window.open("","vote","status=yes,scrollbars=yes,width=600,height=350")}
// -->
</SCRIPT>
<div id="ld" style="position:absolute; left:0px; top:0px; width:100%; height:100%; background-color:#ffffFF; z-index:1000;">
<br>
<br><br><br><br><br><br><br><br><br><br><br>
<table align="center" width="50%">
<tr>
  <td align="center"><font color=#0000ff><b>(testing123)</b> http://</font><br>
    <br>
    <font color="#0000ff"> 正在進入請稍等 … … </font></td>
</tr>
</table>
<table width="50%" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="#ffffFF">
<tr>
  <td align="left" bgcolor="#ffffff" >
  <table id="lpc" bgcolor="#3399ff" height="8">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td></td>
</tr>
</table>
</div>
<div style="display:none;" id="page"><q id="q"></q></div>
<script language="JavaScript">
<!--
ini = new Date().getTime();
var pc = 0;
load();

function load()
{
pc += 4; lpc.style.width = pc + "%";
time = setTimeout("load()",10);
if (pc > 100)
{
clearTimeout(time);
loaded()
}
}
function loaded()
{
fim = new Date().getTime();
dif = fim - ini;
ld.style.display = 'none';
//body.style.backgroundColor = 'white';
//q.innerHTML = dif/1000;//顯示加載時間到層q
page.style.display = '';
}
function Show()
{
if (txt.style.display == "none")
{
txt.style.display ="inline"
}
else
{
txt.style.display = "none"
}
}
-->
</script>
<!-----測試加載進度條----->

其中裡面的
<td align="center"><font color=#0000ff><b>(testing123)</b> http://</font><br>

改成自己的站的名字和網址
就OK了




 AL8 Forum © All rights reserved.
頂部
 NTjames
 0027106
Rank: 3Rank: 3Rank: 3
點擊查看 NTjames 的詳細資料

頭銜: Conqueror

帖子: 281

精華: 0

積分: 2100 點

現金: 2 元

存款: 181 元

閱讀權限: 20

註冊: 2005-7-25

狀態: 離線
 
發表於 2005-11-26 10:41  資料  個人空間  短消息  加為好友 
呀!!係呀!!
是Java的...可能會影響速度的!!




 AL8 Forum © All rights reserved.
頂部
 ar狂
 0031464
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: 狂仔

帖子: 1426

精華: 0

積分: 14911 點

現金: 148 元

存款: 5352 元

閱讀權限: 70

註冊: 2005-9-25

來自: 澳門

狀態: 離線
 
發表於 2005-11-26 13:11  資料  個人空間  短消息  加為好友 
java..
最新戈隻java超級影響速度
入得勁慢!




Dz好難用 .. ? 好難學 .. ?
 AL8 Forum © All rights reserved.
頂部
 okada1314
 0021568
Rank: 3Rank: 3Rank: 3
點擊查看 okada1314 的詳細資料

頭銜: Conqueror

帖子: 236

精華: 0

積分: 1809 點

現金: 2489 元

存款: 0 元

閱讀權限: 20

註冊: 2005-5-18

狀態: 離線
 
發表於 2005-11-26 13:58  資料  個人空間  短消息  加為好友 




 AL8 Forum © All rights reserved.
頂部
 okada1314
 0021568
Rank: 3Rank: 3Rank: 3
點擊查看 okada1314 的詳細資料

頭銜: Conqueror

帖子: 236

精華: 0

積分: 1809 點

現金: 2489 元

存款: 0 元

閱讀權限: 20

註冊: 2005-5-18

狀態: 離線
 
發表於 2005-11-26 14:02  資料  個人空間  短消息  加為好友 
發現有個bug
做了alt 不能display




 AL8 Forum © All rights reserved.
頂部
 okada1314
 0021568
Rank: 3Rank: 3Rank: 3
點擊查看 okada1314 的詳細資料

頭銜: Conqueror

帖子: 236

精華: 0

積分: 1809 點

現金: 2489 元

存款: 0 元

閱讀權限: 20

註冊: 2005-5-18

狀態: 離線
 
發表於 2005-11-26 14:18  資料  個人空間  短消息  加為好友 
點解del 唔到




 AL8 Forum © All rights reserved.
頂部
 okada1314
 0021568
Rank: 3Rank: 3Rank: 3
點擊查看 okada1314 的詳細資料

頭銜: Conqueror

帖子: 236

精華: 0

積分: 1809 點

現金: 2489 元

存款: 0 元

閱讀權限: 20

註冊: 2005-5-18

狀態: 離線
 
發表於 2005-11-26 14:33  資料  個人空間  短消息  加為好友 
點解del 唔到
del 左變到咁樣



 附件: 您所在的用戶組無法下載或查看附件



 AL8 Forum © All rights reserved.
頂部
 ar狂
 0031464
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: 狂仔

帖子: 1426

精華: 0

積分: 14911 點

現金: 148 元

存款: 5352 元

閱讀權限: 70

註冊: 2005-9-25

來自: 澳門

狀態: 離線
 
發表於 2005-11-26 14:48  資料  個人空間  短消息  加為好友 
整到個壇亂哂= ="""




Dz好難用 .. ? 好難學 .. ?
 AL8 Forum © All rights reserved.
頂部

聯繫我們 - AL8 Forum - 網頁空間由 I-SERVICES 提供 - Archiver - WAP
清除 Cookies, 當前時區 GMT+8, 現在時間是 2008-11-23 05:35
Processed in 0.018658 second(s), 7 queries , Gzip enabled
Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.