2009-04-24 offset JS offsetTop、offsetLeftは、親要素からみた相対的な位置を取得するものみたいだけど window.eventでも、offsetX、offsetYがあるようだ。 document.images[0].onclick = function() { //この場合、画像[0]内でのx座標 alert(window.event.offsetX) };他にも、client、layerなどある。