Monthly archives: September 2010


How to get an object real coordinates when there is a zoom or an scroll bar on the page ? var scrOfX = 0, scrOfY = 0; if (typeof(window.pageYOffset) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { […]

Coordinates when there is an offset in the page