Mit dieser Beispiel-Datei geht's!
Einfach auf das Bild klicken.
Gruß - G. Keule
TextzumBild.htm
--------------------------------------------
<html>
<head>
<title>Text zum Bild</title>
<script language="JavaScript">
<!--
function bildtext()
{
document.myForm.TextzumBild.value="Der Text zum Bild";
}
function do_nothing()
{
;
}
//-->
</script>
</head>
<body>
<h2>Text zum Bild</h2>
<form name="myForm">
<input type="text" name="TextzumBild" size="15" value=" ">
</form>
<hr>
<a href="javascript:do_nothing()" onMouseDown="bildtext()"><img "bild.jpg" alt="Klicke auf das Bild">
</body>
</html>