title: Using mousewheel with jQuery
body: <pre><code>jQuery(function($) {
  $('#myDiv')
      .bind('mousewheel', function(event, delta) {
          var dir = delta &gt; 0 ? 'Up' : 'Down',
          vel = Math.abs(delta);
          alert(dir + ' at a velocity of ' + vel);
          return false;
      });
  });
  </code></pre>
  
  <p>I have some problem with getting the mousewheel to work. 
  I have the following code in my head section:</p>
  
  <pre><code>&lt;script type='text/javascript' src='/js/jquery.mousewheel.min.js'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I copied the function from another web page, and added the alert. But nothing happens. Why? There might be some obvious mistake that I can´t see with my jQuery beginner eyes.</p>