> .leftFromParent()
> .leftFromDocument()
> .leftFromWindow()
These seem to be crying out "Please parameterize my From part!" :)
Maybe something like this:
$("#mydiv").pxLeft(item)
That would tell you how many pixels to the left #mydiv is from the given
item, which should be an ancestor DOM element or perhaps some special string
values like "window"; no item could be interpreted as "document" or "parent"
or whatever seems most reasonable. If item is an element that is not an
ancestor it would return undefined--unless there's some reasonable way to
figure out the relationship?
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/