Guest User

Untitled

a guest
Jul 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function alignLeft(id, num)
  2. {
  3. var l = $('#' + id);
  4. var left = l.position();
  5. var left = position.left - (num / 2);
  6. return left;
  7. }
  8. function alignTop(id, num)
  9. {
  10. var t = $('#' + id);
  11. var top = t.position();
  12. var top = position.top - (num / 2);
  13. return top;
  14. }
  15.  
  16. I get position is not defined
Add Comment
Please, Sign In to add comment