Maybe you don't need to know the coordinates of the rectangle. What do you mean by draw? Consider this simple example, the image has native dimensions of 225x140 (if using a different sized image, adjust the table cell's dimensions accordingly):
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body><table style="border-collapse:collapse;"><tr><td style="width:152px;height:237px;text-align:center;vertical-align:middle;">
<img id="boxer" src="thumb2/photo9.jpg"></td></tr></table>
<input type="button" value="Box It!" onclick="document.getElementById('boxer').style.padding='5px';document.getElementById('boxer').style.border='1px solid black';">
</body>
</html>
Bookmarks