if(window.attachEvent){ ///*IE8注册事件*/ this.oc.attachEvent('onmousewheel',function(e) { //函数体 }); } else if(window.addEventListener) ///*Firefox注册事件*/ { this.oc.addEventListener('DOMMouseScroll', function(e) { //函数体 }, false); } this.oc.onmousewheel =…