Javascript getRelativeMousePosition

Following this :

This is an universal way to get the relative position of your mouse. It is usefull for ‘document.getElementFromPoint’

Enjoy

Celogeek

Short URL: http://sck.pm/Q5