> Would leftFromParent simply be 'el.offsetLeft'?

Yep!

> What is the difference between leftFromDocument and leftFromWindow?

A document is positioned within a window. For example, I'm typing this
in Gmail and the document is 1500px tall (just a guess) while my
browser window is only 1200px tall - causing a scrollbar to appear.

So, this is important for many dynamic applications, because you need
to know exactly where an element is visible to the user.

Oh - I also remembered the result of the features that I was going to do:

$(window).width()/.height()
$(document).width()/.height()

$(document).left()/.top() = The scroll offset of the document
$(window).left()/.top() = The position of the window on the screen

Also, it'd be really nice to have associated convenience methods for
"bottom" and "right". Just some more to chew on.

--John

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

Reply via email to