hallo,
[1] kann mir jemand sagen, wieso mein bildwechsel (animiertes menü) mit NN4 nicht funktioniert bzw. ob und was ich falsch mache. ich habe ../selfhtml/javascript/beispiele/buttons.htm#quelltext ein klein wenig angepasst. und es ist zum verzweifeln: ich finde nicht heraus, wo eine ungenauigkeit (ein fehler kanns kaum sein, alle anderen browser - auch NN3, NN6 - zeigen alles schick) steckt. hab schon CSS usw. gelöscht.
unten folgt die minimalvarinate der datei. ich erhalte jedesmal die fehlermeldung:
"window.document.images[Bnr] has no properties."
[2] außerdem ist NN4 nicht ebreit, die schrift laut CSS anzuzeigen. (hängt vermutlich damit zusammen.)
danke für euer interesse!
willie
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--
body { margin:0; padding:0; }
td,small,a { font-family:Tahoma,Helvetica,Arial,sans-serif; color:#C0D0DF; font-size:10px; }
a,a:link,a:visited,a:active,a:hover { border-style:none; font-size:18px; text-decoration:none; font-weight:bold; color:lime; }
a:hover { color:red; }
-->
</style>
<script language=javascript>
<!--
N0 = new Image(); N0.src = "pix/fotos_n.jpg";
H0 = new Image(); H0.src = "pix/fotos_h.jpg";
C0 = new Image(); C0.src = "pix/fotos_c.jpg";
function anim(Bnr,Bild) { window.document.images[Bnr].src = Bild.src; return true; }
function foto() { status="Bildergalerie"; return true; }
//-->
</script>
<base target="main">
</head>
<body text="white" bgcolor="black" link="lime" alink="red" vlink="white">
<div style="position:absolute; top:0; left:0;">
<table border="0" width="127" cellpadding="0" cellspacing="0" style="margin:0; padding:0;">
<tr><td colspan="2"><a href="foto.html" onMouseMove="foto()" onMouseOver="anim(0,H0)" onMouseOut="anim(0,N0)" hidefocus="true"><img src="pix/fotos_n.jpg" width="127" height="31" border="0" alt="fotos"></a></td></tr>
<tr><td width="4"><img src="pix/empty.gif" width="4" height="1" border="0"></td><td><small>© willie.de</small></td></tr>
</table>
</div>
</body>
</html>