Posted By

otaqui on 02/08/08


Tagged

javascript textmate


Versions (?)

getAbsolutePosition


 / Published in: Other
 

  1. function getAbsolutePosition( eElement )
  2. {
  3. var oReturn = { x:0, y:0 }
  4. while ( eElement != null )
  5. {
  6. oReturn.x += oElement.offsetLeft;
  7. oReturn.y += oElement.offsetTop;
  8. oElement = oElement.offsetParent;
  9. }
  10. return oReturn;
  11. }

Report this snippet  

You need to login to post a comment.