09 2012 档案

用鼠标滚动缩放图片
摘要:用鼠标滚动缩放图片使用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 划风 阅读(347) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示