<script>
function getPageCoords (element) { // thanks to 'Martin Honnen' for this function
var coords = {x: 0, y: 0};
while (element) {
coords.x += element.offsetLeft;
coords.y += element.offsetTop;
element = element.offsetParent;
}
return coords;
}

</script>
...



<table border=1><tr><td></td><td>
<img src=100x100.gif
onload="p=getPageCoords(this);alert(p.x);alert(p.y );">
</td></tr></table>

ciao