2012年9月27日

摘要: 用鼠标滚动缩放图片使用Javascript中的onmusewheel事件来的。兼容firefox、chrome等主流浏览器。function wheel(obj, fn, useCapture) { var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel" //FF doesn't recognize mousewheel as of FF3.x if (obj.attachEvent) //if IE (and Ope 阅读全文
posted @ 2012-09-27 12:34 划风 阅读(344) 评论(0) 推荐(0) 编辑

导航