/**
* 通过取消默认事件,禁止鼠标滑轮点击
*
*/
if(document.addEventListener){
document.addEventListener("mousedown",function(event){
if(event.button=="1"){
event.preventDefault();
}
});
}else{//ie8
document.attachEvent("onmousedown",function(){
event=window.event;
if(event.button=="4"){
event.returnValue=false;
}
});
}