var oDivProgressBarCount=0
    var oDivProgressBar=null;
    var isStopProgressBar=false;
   
    function ShowProgressBar()
    {     oDivProgressBar=document.createElement("DIV");
     oDivProgressBar.;
     oDivProgressBar.innerHTML="<table border=0 cellspacing=0 cellpadding=0 align=left><tr><td height=20 width=0 bgcolor=blue></td></tr></table>";
     oDivProgressBar.style.border = "outset black 1px";
     oDivProgressBar.style.width=200;
     oDivProgressBar.style.height=20;
     oDivProgressBar.style.position='absolute';
     document.body.appendChild(oDivProgressBar);
     oDivProgressBar.style.left=(document.body.clientWidth-150)/2-20;
     oDivProgressBar.style.top=(document.body.clientHeight-50)/2;
     oDivProgressBar.style.display='';
     isStopProgressBar=false;
     GetBar();
    }
    function GetBar()
    { if(!isStopProgressBar)
     {
      oDivProgressBar.innerHTML="<table border=0 cellspacing=0 cellpadding=0 align=left><tr><td height=20 width="+(oDivProgressBarCount*10)+" bgcolor=blue></td></tr></table>";
      oDivProgressBarCount+=1;
      if(oDivProgressBarCount>20){oDivProgressBarCount=0;}
      isStopProgressBar=false;
      window.setTimeout(GetBar,100);
     }
    }
    function RemoveProgressBar()
    { isStopProgressBar=true;
     try{document.body.removeChild(document.getElementById("BtnExcuteoDivProgressBar"));}catch(e){}
    }

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2021-09-20
  • 2021-05-05
  • 2021-08-11
  • 2022-12-23
  • 2021-06-22
猜你喜欢
  • 2021-08-09
  • 2022-01-05
  • 2021-12-03
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案