Shortening javascript Jquery code
<p>I am wondering if there is a way to shorten the code below. I have shown the first 5 if statements. I will have a total of 10 when I am done.</p>

<p>EDIT: FORGOT THE MOUSEMOVE PART</p>

<pre><code>$("#bar").mousemove(function(e){
    var vb = $(this);
           if(e.pageX &lt;=467 &amp;&amp;  e.pageX &gt; 457){
            vb.attr("src","images2/vb10.png");
            vol =10;
          }
          if(e.pageX &lt;=457 &amp;&amp; e.pageX &gt; 447){
            vb.attr("src","images2/vb9.png");
            vol=9;
          }
          if(e.pageX &lt;=447 &amp;&amp; e.pageX &gt; 437){
            vb.attr("src","images2/vb8.png");
            vol=8;
          }
          if(e.pageX &lt;=437 &amp;&amp; e.pageX &gt; 427){
            vb.attr("src","images2/vb7.png");
            vol=7;
          }
          if(e.pageX &lt;=427 &amp;&amp; e.pageX &gt; 417){
            vb.attr("src","images2/vb6.png");
            vol=6
          }
});
</code></pre>

<p>Thanks!</p>
