Those who worked with cursor positioning probably know that IE doesn't support PageX/Y properties for cursor events. (i.e. the position of the cursor relative to the page) Common solution is to calculate them from (scrollTop + clientY).
Problem I encountered today is that if the zoom setting in IE7 is not 100%, (scrollTop + clientY) calculation is totally off.
Anyone know how to fix this?
Here's some code for anyone wish to test it. As you can see clientX/Y values are relative to the view area, not the page content.
if (!evt) var evt = window.event;
var s = evt.clientX + ' ' + evt.clientY;
document.getElementById('output').innerHTML = s;
window.onload = function ()
document.body.onmousemove = analyzeEvent;