J
Joshua
Guest
Was mache ich bei folgender Einbindung falsch?
Fehlermeldung, welche ich erhalte:
window.document.images[...] ist kein Objekt.
<title>Neue Seite 1</title>
<script language="JavaScript">
Normal1 = new Image();
Normal1.src = "images/menu_01_text_off.jpg";
Highlight1 = new Image();
Highlight1.src = "images/menu_01_text_on.jpg";
function Bildwechsel(Indexnr,Bildobjekt)
{
window.document.images[Indexnr].src = Bildobjekt.src;
}
</script>
</head>
<body bgcolor="#669999">
<A HREF="startseite.htm" onMouseover="Bildwechsel(0,Highlight1)" onMouseout="Bildwechsel(0,Normal1)">
Fehlermeldung, welche ich erhalte:
window.document.images[...] ist kein Objekt.
<title>Neue Seite 1</title>
<script language="JavaScript">
Normal1 = new Image();
Normal1.src = "images/menu_01_text_off.jpg";
Highlight1 = new Image();
Highlight1.src = "images/menu_01_text_on.jpg";
function Bildwechsel(Indexnr,Bildobjekt)
{
window.document.images[Indexnr].src = Bildobjekt.src;
}
</script>
</head>
<body bgcolor="#669999">
<A HREF="startseite.htm" onMouseover="Bildwechsel(0,Highlight1)" onMouseout="Bildwechsel(0,Normal1)">