Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function alignLeft(id, num)
- {
- var l = $('#' + id);
- var left = l.position();
- var left = position.left - (num / 2);
- return left;
- }
- function alignTop(id, num)
- {
- var t = $('#' + id);
- var top = t.position();
- var top = position.top - (num / 2);
- return top;
- }
- I get position is not defined
Add Comment
Please, Sign In to add comment