/*滚轮事件函数封装*/
Object.prototype.onmousewheelhandlefun=function(handle){
var info=navigator.userAgent;
var down=null;
if(info.indexOf("Firefox")!=-1){
this.addEventListener("DOMMouseScrool",funciton(event){
var ev=event||window.event;
if(ev.detail){
down=ture;
}else{
down=false;
}
handle.apply(this,[down,ev]);
},false)
}else{
this.onmousewheel=function(event){
var ev=event||window.event;
if(ev.wheelDelta>0){
down=false;
}else{
down=ture;
}
handle.apply(this,[down,ev]);
}
}
}
/*调运方法不写了哈,简单的一个封装*/