DOMMouseScroll 事件

2017-06-19 12:06:00
admin
原创
557
<!DOCTYPE html>
<html>
<head>
    <title>DOMMouseScroll Event Example</title>
    <script type="text/javascript" src="http://code.ybao.org/demo/js/client.js"></script>
    <script type="text/javascript" src="http://code.ybao.org/demo/js/EventUtil.js"></script>
</head>
<body>
    <div id="myDiv">Try scrolling your mouse wheel (Firefox only).</div>
    <script type="text/javascript">
        EventUtil.addHandler(window, "DOMMouseScroll", function(event){
            event = EventUtil.getEvent(event);
            alert(event.detail);
        });

    </script>
</body>
</html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络