title: Scrolling background image by mouse wheel
body: <p>I need to make script that will change background image position by only scroll of a mouse. Document doesnt have width to be scrolled. It a content slider. The idea is to make parallax scrolling like in Android.
   Here is the code I am going to use:</p>
  
  <pre><code>$(window).bind("load resize scroll",function(e) {
      var y = $(window).scrollTop();
      $("body").filter(function() {
          return $(this).offset().top &lt; (y + $(window).height()) &amp;&amp;
                 $(this).offset().top + $(this).height() &gt; y;
      }).css('background-position', '0px ' + parseInt(-y / 6) + 'px');
  });
  </code></pre>
  
  <p>How to make 'body' background to move when mouse wheel is scrolled?</p>