页面右下角弹出类似QQ或MSN的消息提示
来源:互联网 发布:matlab 纹理合成算法 编辑:程序博客网 时间:2024/06/11 23:41
/* 消息构造
*/
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)
}
}
js源码实例下载_
*/
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)
}
}
js源码实例下载_
- 页面右下角弹出类似QQ或MSN的消息提示
- 页面右下角弹出类似QQ或MSN的消息提示
- 页面右下角弹出类似QQ或MSN的消息提示
- 页面右下角弹出类似QQ或MSN的消息提示
- asp.net 页面右下角弹出类似QQ或MSN的消息提示
- asp.net 页面右下角弹出类似QQ或MSN的消息提示
- 页面右下角弹出类似QQ或MSN的消息提示(JQuery版)
- 右下角弹出类似QQ或MSN消息提示
- 实例制作:右下角弹出类似QQ或MSN消息提示
- 类似msn,qq的右下角消息提示
- javascript 弹出类似QQ或MSN的消息提示
- 仿QQ或msn在右下角逐渐弹出的消息框
- 页面右下角弹出的消息提示代码
- 类似QQ右下角消息提示3
- 类似QQ右下角消息提示3
- 类似msn的右下角信息提示
- 类似MSN右下角提示的窗口效果
- 近期 关于QQ 或MSN 右下角弹出提示框 解决方案 网页
- Oracle数据库事务的三种隔离级别
- Quartz 测试成功的例子 002
- 自己动手写一个android手机上的一键锁屏程序
- 信息集成中的单点登录技术
- 网站中常见的天气预报控件的实现!
- 页面右下角弹出类似QQ或MSN的消息提示
- 批处理中等待命令
- 我写测试用例时的坏习惯
- VC 编译连接(#if #ifdef #ifndef #else #endif defened)
- 一台电脑开多个TOMCAT
- 红狼的ghost远控代码+编译方法
- Linux内核之旅
- 浅议Qt的事件处理机制 二
- SqlServer2005数据库自动备份