jumping in late here, pardon me if I'm stepping out of line.
* Jordi - IlMaestro - Ministral
> The offsetTop property is the anchor's position to its parent
> element, which is not the document itself but most likely a <td> <p>
> or another tag...
the offsetTop property is an element's position relative to whatever
parent element defines it offset. various IE versions don't agree
with each other wether it's TABLE or TR that's the offsetParent of a
TD, for instance. but I digress...
recursive one-liners fix the problem:
function getObjY(myObj) {
return(myObj.offsetTop + (myObj.offsetParent ? getObjY(myObj.offsetParent) : 0));
}
function getObjX(myObj) {
return(myObj.offsetLeft + (myObj.offsetParent ? getObjX(myObj.offsetParent) : 0));
}
buggy in IE4.5/Mac AFAIR, dunno about IE5/Mac.
thought I'd share those in case anyone needed'em. now back to my
regular lurking...
Morten!
--
"...a liquid which was almost, but not quite, entirely unlike tea."
My opinions are not necessarily those of my provider,
not necessarily mine, and probably not necessary.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help