title: Check if mouse is within element's bounds
body: <p>Is there a way in javascript to check whether the mouse position currently lies within an element's bounds?</p>
  
  <p>Is there a function you can suggest or a method thats quick?</p>
  
  <pre><code>if ( document.mouse.x &gt; ele.offsetLeft &amp;&amp; document.mouse.x &lt; ele.offsetRight ...check y bounds)
  {
    return true;
  }
  else return false;
  </code></pre>