dopo che l' immagine con id="immagine" e' stata dichiarata nell' xhtmlcodice:function coords(el){ var c={x: 0, y: 0}; while (el) { c.x+=el.offsetLeft; c.y+=el.offsetTop; el=el.offsetParent; } return c; }
coords(document.getElementById('immagine')).y