'onMouseWheel' Example : onMouseWheel « Event onMethod « JavaScript DHTML






'onMouseWheel' Example

    
<html>
<body>
    <p>Move mouse in and move the mouse wheel up or down.</p>
    <img id="yourimage" 
         src="http://www.java2s.com/style/logo.png" 
         width="500"
         height="500"
         onmousewheel="alert('Wheel Delta: ' + event.wheelDelta);">
</body>
</html>

    
      
      








Related examples in the same category