//滚动动画 windowAddMouseWheel(); function windowAddMouseWheel() { var scrollFunc = function (e) { e = e || window.event; if (e.wheelDelta) { //判断浏览器IE,谷歌滑轮事件 if (e.wheelDelta > 0) { //当滑轮向上滚动时 $("#my_top").slideDown("slow"); $("#s…
wheelEvent = "onwheel" in document.createElement("div") ? "wheel" : // Modern browsers support "wheel" document.onmousewheel !== undefined ? "mousewheel" : // Webkit and IE support at least "mousewhee…
function disabledMouseWheel() { var div = document.getElementById('divid'); if (div.addEventListener) { div.addEventListener('DOMMouseScroll', scrollFunc, false); }//W3C div.onmousewheel = div.onmousewheel = scrollFunc;//IE/Opera/Chrome } function sc…