Can someone show me how to get the top & left position of a div or span element when one is not specified?
ie:
<span id='11a' style='top:55px;' onmouseover="GetPos(this);">stuff</span>
<span id='12a' onmouseover="GetPos(this);">stuff</span>
In the above, if I do:
document.getElementById('11a').style.top
The value of 55px is returned. However, if I try that for span '12a', then nothing gets returned.
I have a bunch of div/spans on a page that I cannot specify the top/left properties for, but I need to display a div directly under that element.