不多说,直接上代码。
//非ie document.body.onmousewheel = function(event) { event = event || window.event; console.dir(event); }; //firefox document.body.addEventListener("DOMMouseScroll", function(event) { console.dir(event); });
更详细的鼠标滚轮事件请参考
1 http://www.adomas.org/javascript-mouse-wheel/
2 http://www.zhangxinxu.com/wordpress/2013/04/js-mousewheel-dommousescroll-event/ 【总结的非常好】