>  $("#mydiv").pxLeft(item)

It'd actually be not that bad. Something like:

    $( elementA ).posLeft( elementB );

is equivalent to:

    $( elementA ).posLeft( document ) - $( elementB ).posLeft( document );

and .posLeft() could return the positioni relative to the parent, by default.

So, that would mean that there would be .posLeft(), .posTop(),
.postRight(), .posBottom() and each would take any of the following
parameters:
window, document, an element, an expression (matching the first
element, and comparing against it), or nothing (aka: the parent)

I'm liking this more and more :-)

--JOhn

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to