Habe derzeit in einem Formular ein image eingebunden:
<form action="insertperson.php"
name="Show"
enctype="multipart/form-data"
method="GET">
<input style='cursor: crosshair;'
type='image' src='getmap.php?view=showmethemap'
onClick="document.Show.submit();">
</form>
Dort kann ich nun mittels
$thex = $_REQUEST["x"]; // new x location
$they = $_REQUEST["y"]; // new y location
die Bildkoordinaten auswerten.
Soweit, so gut.
Jetzt will ich aber statt des angezeigten Bildes eine Imagemap haben,
also z.B. so:
<MAP NAME="image-map">
<form action="insertperson.php"
name="Show"
enctype="multipart/form-data"
method="GET">
<img src="getmap.php?view=showmethemap" style='cursor: crosshair;'
alt="" usemap="#image-map" onClick="document.Show.submit();" border="0"/>
</form>
<area shape="circle" coords="142,122,5" title="Kunde (Bremen)" alt="Kunde, Bremen" target="_blank" onMouseOver="if (document.images) document.detail.thename.value = 'Bremen , THE CREECH'" onMouseOut="if (document.images) document.detail.thename.value = ''">
</map>
So, und nun wird's schlecht: Zwar bekomme ich nun die ALT-Informationen über den Areas angezeigt, aber bei Mouseklick auf das Bild werden anscheinend die x und y Koordinaten nicht mit verschickt.
Hat jemand eine Lösung dafür?