本站首页    管理页面    写新日志    退出


«October 2025»
1234
567891011
12131415161718
19202122232425
262728293031


公告
暂无公告...

我的分类(专题)

日志更新

最新评论

留言板

链接


Blog信息
blog名称:
日志总数:12
评论数量:108
留言数量:0
访问次数:185766
建立时间:2006年1月18日




[Javascript]在IE耗时操作中加入进度条或进度框
电脑与网络

rob 发表于 2006/4/8 11:59:58

 加入进度条 this.Page.Response.Write("<div id='mydiv' >");    this.Page.Response.Write("_");    this.Page.Response.Write("</div>");    this.Page.Response.Write("<script>mydiv.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=javascript>HideWait();</script>"); 加入进度框 this.Page.Response.Write("<script language=javascript>var win;win=window.open('_layouts/bluetech/loading.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=javascript>win.close();</script>");


阅读全文(2721) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.031 second(s), page refreshed 144830179 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号