Hallo Jaron,
und Martin,
wie sich anhand des folgenden Code-Schnippsels leicht herausfinden lässt,
geht's sehr wohl die Koordinaten eines Bildes herauszufinden:
<html>
<head>
<script language="JavaScript" type="text/javascript">
<!--
function WoIsses()
{
if(document.layers) // NS 4.x
{
alert('a) Y='+document.images['bild1'].y+' X='+document.images['bild1'].x);
}
else if(document.getElementById) // IE5.x und NS6/Modzilla
{
alert('b) Y='+document.getElementById('bild1').offsetTop+' X='+document.getElementById('bild1').offsetLeft);
}
else if(document.all) // IE4.x
{
alert('c) Y='+document.all.item('bild1').offsetTop+' Y='+document.all.item('bild1').offsetLeft);
}
}
// -->
</script>
</head>
<body onload="WoIsses()">
<img name="bild1" src="test.jpg" width=437 height=341 alt="" vspace=10 hspace=20>
</body>
</html>
Viele Grüße Günter