JavaScript: incorrect mouse coords (pageX and pageY in fullscreen mode)
“But, it have some problem: if in Firefox I changed fullscreen mode, image get incorrect coords. You should add onresize event handler to check if user enters into full screen mode and calculate the new position of mouse in this case.”
read »