Set offset

Set offset


Currently you can't set the offset of jquery by passing in an object
with left and top values. Some people set left and top with $(el).css
({left:px, top:px}, but that will not work if el is inside an element
with position relative, because the left and top will be relative to
that parent instead of the window. I created a plugin that keeps the
getting of the offset intact, but also adds the ability to set the
offset relative to the window - regardless of the positioning of
parents. I think this should be added to the next release.
http://plugins.jquery.com/project/setOffset