真正的用JS做的loading(轉(zhuǎn))

真正的 用JS 做的 loading (轉(zhuǎn))[@more@]

這個loading 需要2個頁面的的支持,還可以為一個站點的所有html設置這個loading程序
<!--=================================-->
<!-- index.htm--->
<!--=================================-->


您正在訪問 .NET">http://m9m.nease.net 的網(wǎng)站......


 
 

<body><BR>您的瀏覽器不支持frames......<BR></body>

<!--=================================-->
<!-- loading.htm--->
<!--=================================-->







<!--=================================-->
<!-- to.js -->
<!--=================================-->
document.write('');

function WriteButton(fnFunctionName, ButtonValue, ButtonURL, wd)
{
  var strTmp = "",n = 0;
  if (fnFunctionName == "")
  strTmp = "self.location = '" + ButtonURL + "';";
 else
  strTmp = fnFunctionName + '();';
 for(var i = 0; i < ButtonValue.length; i++)
 {
  var c = ButtonValue.substr(i, 1);
  if( c > "z" || c < "A")
  n += 2;
  else
  n += 1;
 }
 if( wd == "") wd = (n * 8);

 document.write("

" + ButtonValue + "
");
}

function wtdiv()
{
  document.write("

");
}
wtdiv();

function openwin()
{
  if(self == window.parent.frames['t'] && top.parent.frm)
 top.parent.frm.rows = '*,0';
  else if(top.parent.frm) top.parent.frm.rows = '0,*';
}

var wt = 0, n = 0;
function countwt()
{
  if (wt)
  clearTimeout(wt);
  wtime.innerHTML = "" + n++ ;
  wt = setTimeout("countwt();", 1000);
}


function showdiv()
{
  openwin();
 document.getElementById("stdiv").style.visibility = "visible";
  countwt();
}
openwin();

<!--=================================-->
<!--  h.js -->
<!--=================================-->
if(self != window.parent.frames['t'] && window.parent.frames['t'])
  window.parent.frames['t'].showdiv();
else if(self == window.parent.frames['d'] && window.parent.frames['d'])
  window.parent.frames['d'].showdiv();

最后的說明
在您的i.htm,也就是您的真正的index.htm首頁里加入如下代碼就可以
后加

前加入

就可以了

不明白的可以訪問我的網(wǎng)站 http://m9m.nease.net 或 來信和我交流
qq: 11602011


分享標題:真正的用JS做的loading(轉(zhuǎn))
本文路徑:http://bm7419.com/article10/jjsigo.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供響應式網(wǎng)站商城網(wǎng)站、面包屑導航、、靜態(tài)網(wǎng)站品牌網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應式網(wǎng)站建設