存档

文章标签 ‘ie’

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

2008年2月27日 編程·程序設計 635 views

加入进度条    C#代码   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>");    加入进度框  C#代码 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>");    来源:http://blog.csdn.net/21aspnet/archive/2005/03/12/317866.aspx

, , ,

文字过长自动省略的css写法

2007年11月20日 网站建设 2,129 views

IE下面的写法: CSS代码 overflow:hidden;        text-overflow:ellipsis;        whitewhite-space:nowrap;     FF下面的写法: 使用 :after 伪类来实现… CSS代码 <div class="ellipsis">        <span>A very, very, very, very, very, very, very, very, very long text</span>        </div>        We should have this css stylesheet :        .ellipsis span {           whitewhite-space:nowrap;           text-overflow:ellipsis; /* for internet explorer */          overflow:hidden;           width:190px;           display:block;        }        html>body .ellipsis {           clear:both;        }        html>body .ellipsis span:after {           content: "…";        }        html>body .ellipsis span {           max-width:180px;           width:auto !important;           float:left;      

, ,

Web开发人员利器:Multiple IEs

2007年11月15日 网站建设 820 views

对于做WEB开发的人员来说,没有浏览器共存就麻烦大了,现在大部分的人都在使用IE6,而IE7也也在慢慢的成为一种趋势,所以现在的项目首先在兼容IE6,然后再在兼容IE7,可IE又是WINDOWS的核心程序,所以MS就不让IE的多个版本共存,这下项目调试就麻烦了,不可能一个人用两机器吧?这时就想到了一句老话:人有多大胆,地有多大产!在这种精神的鼓舞下,终于在网在找到了一个叫Multiple IEs的小软件,才10.3M,里面包括从IE3.0到IE6.0的所有版本,安装时可以选择,而且和IE7也没有冲突,对WEB开发人员来说这可是一个好工具。 http://tredosoft.com/files/multi-ie/multiple-ie-setup.exe  

,