I assume when you say draw you mean use a div
Maybe something on these lines
areaEL=document.getElementById("area")
topLeftX=areaEL.offsetLeft
topLeftY=areaEL.offsetTop
topRightX=areaEL.offsetLeft+areaEL.offsetWidth
topRightY=areaEL.offsetTop
bottomLeftX=areaEL.offsetLeft
bottomLeftY=areaEL.offsetTop+areaEL.offsetHeight
bottomRightX=areaEL.offsetLeft+areaEL.offsetWidth
bottomRightY=areaEL.offsetTop+areaEL.offsetHeight
The Silent One
The most dangerous thing in the world is an idea.
The most dangerous person in the world is one with an idea
Bookmarks