摘要: 接着上次的未完的部分。接下是对滚轮的支持。滚轮大概可以分为这么两类:1. FirefoxFirefox 需要添加 'DOMMouseScroll' 事件支持,并取值是 使用detail 为正负30。 2. IE,Opera,Safari,Chrome而这四类,则直接在 window.onmousewheel = document.onmousewheel = $(dom).onmousewheel = fn取值是: 正负120, 虽然这两个取值是不一样的,但含义是一样的,正为向上,负为向下。所以: mousewheel:function(fun){returnthis.each 阅读全文
posted @ 2011-12-05 16:16 豪情 阅读(3113) 评论(1) 推荐(0) 编辑