Calculating positioning is pretty tricky. This function will give you the top position of the object relative to the body. So all you have to is pass it an object reference.
You'll need to write one for the left position also. It's pretty much the same function except you use offsetLeft and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.