Christoph Fuest: Netscape und onMouseMove, onMouseOut, onMouseDown,...

Beitrag lesen

Irgendwie geht folgendes nicht, die Bilder bleiben heruntergedrückt oder hervorgehoben...

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function brid()
{
if (navigator.appName=="Netscape") {
document.images[0].src = "ntb1.jpg";
}
else {
document.images[0].src = "ietb1.jpg";
}
}
function statec(button, state)
{
document.images[button].src = button + "-" + state + ".jpg";
}
</script>
</HEAD>
<BODY marginleft="0" marginright="0" margintop="0" margindown="0" onLoad="brid()">

<table border=0 bgcolor=#BBBBBB width=100% background="ietb2.jpg">
<tr>
<td>
<nobr>
<IMG src="ietb1.jpg">
<img src="1-2.jpg" onMouseDown="statec(1,3)" onMouseMove="statec(1,1)" onMouseOut="statec(1,2)" onMouseUp="statec(1,1)">
<img src="seperator.jpg">
<img src="3-2.jpg" onMouseDown="statec(3,3)" onMouseMove="statec(3,1)" onMouseOut="statec(3,2)" onMouseUp="statec(3,1)">
</nobr>
</td></tr>
</table>
</BODY></HTML>