I am trying to do positioning in JavaScript. I am using a cumulative position function based on the classic quirksmode function that sums offsetTop and o
offsetTop
o
https://developer.mozilla.org/en/DOM/element.offsetParent
offsetParent returns null when the element has style.display set to "none".