分享

在IE耗时操作中加入进度条或进度框

 七郎 2007-01-17

在IE耗时操作中加入进度条或进度框
加入进度条
this.Page.Response.Write(div id=‘mydiv‘ );
   this.Page.Response.Write(_);
   this.Page.Response.Write(div);
   this.Page.Response.Write(scriptmydiv.innerText = ‘‘;script);
   this.Page.Response.Write(script language=javascript;);
   this.Page.Response.Write(var dots = 0;var dotmax = 10;function ShowWait());
   this.Page.Response.Write({var output; output = ‘正在查询,请稍后‘;dots++;if(dots=dotmax)dots=1;);
   this.Page.Response.Write(for(var x = 0;x  dots;x++){output += ‘·‘;}mydiv.innerText =  output;});
   this.Page.Response.Write(function StartShowWait(){mydiv.style.visibility = ‘visible‘; );
   this.Page.Response.Write(window.setInterval(‘ShowWait()‘,1000);});
   this.Page.Response.Write(function HideWait(){mydiv.style.visibility = ‘hidden‘;);
   this.Page.Response.Write(window.clearInterval();});
   this.Page.Response.Write(StartShowWait();script);
   this.Page.Response.Flush();

 .........

   this.Page.Response.Write(script language=javascriptHideWait();script);

加入进度框

this.Page.Response.Write(script language=javascriptvar win;win=window.open(‘_layoutsbluetechloading.htm‘,‘progress‘,‘toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=270,height=201,screenX=‘+(screen.width-270)2+‘,screenY=‘+(screen.height-201)2+‘,top=‘+(screen.height-201)2+‘,left=‘+(screen.width-270)2+‘‘);script);
   this.Page.Response.Flush();
   ...........

   this.Page.Response.Write(script language=javascriptwin.close();script);

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多