Detecting Mouse position in Firefox in javascript
<p>I'm trying to detect mouse position inside the element through on mouse move event but it does not work in Firefox.</p>

<pre><code>function mouseover_imageChange(imgid,imgArr) {
    var x= event.pageX- jQuery("#"+imgid).offset().left;
    var y= event.pageY- jQuery("#"+imgid).offset().top;
}
</code></pre>

<p>Any idea on how to make it work in all browsers, along with the parameters that are needed to be passed to the function?</p>

<p>Thanks,
Muhtu</p>
