页面右下角弹出类似QQ或MSN的消息提示
来源:广州中睿信息技术有限公司官网
发布时间:2012/10/21 23:25:16 编辑:admin 阅读 341
/*消息构造*/functionCLASS_MSN_MESSAGE(id,width,height,caption,title,message,target,action){this.id=idth

/*    消息构造    */    function CLASS_MSN_MESSAGE(id,width,height,caption,title,message,target,action){        this.id     = id;        this.title  = title;        this.caption= caption;        this.message= message;        this.target = target;        this.action = action;        this.width    = width?width:200;        this.height = height?height:120;        this.timeout= 150;        this.speed    = 20;       this.step    = 1;       this.right    = screen.width -1;        this.bottom = screen.height;       this.left    = this.right - this.width;       this.top    = this.bottom - this.height;       this.timer    = 0;       this.pause    = false;      this.close    = false;      this.autoHide    = true;  }        /**//*    *    隐藏消息方法    */    CLASS_MSN_MESSAGE.prototype.hide = function(){        if(this.onunload()){              var offset  = this.height>this.bottom-this.top?this.height:this.bottom-this.top;          var me  = this;              if(this.timer>0){                 window.clearInterval(me.timer);            }              var fun = function(){                if(me.pause==false||me.close){                  var x  = me.left;                   var y  = 0;                   var width = me.width;                   var height = 0;                   if(me.offset>0){                       height = me.offset;                   }                          y  = me.bottom - height;                          if(y>=me.bottom){                       window.clearInterval(me.timer);                        me.Pop.hide();                    } else {                       me.offset = me.offset - me.step;                    }                   me.Pop.show(x,y,width,height);                  }                       }              this.timer = window.setInterval(fun,this.speed)            }    }    

  

联系我们CONTACT 扫一扫
愿景:成为最专业的软件研发服务领航者
中睿信息技术有限公司 广州•深圳 Tel:020-38931912 务实 Pragmatic
广州:广州市天河区翰景路1号金星大厦18层中睿信息 Fax:020-38931912 专业 Professional
深圳:深圳市福田区车公庙有色金属大厦509~510 Tel:0755-25855012 诚信 Integrity
所有权声明:PMI, PMP, Project Management Professional, PMI-ACP, PMI-PBA和PMBOK是项目管理协会(Project Management Institute, Inc.)的注册标志。
版权所有:广州中睿信息技术有限公司 粤ICP备13082838号-2