hier noch‚mal der genaue code, unter ie4 funktionierts, mit nn nicht. wäre aber doch schön, genau plazierte dynamische buttons zu haben, ohne fehlermeldung. vielleicht hat ja jemand ne idee,
<HTML>
<HEAD>
<TITLE></TITLE>
<link rel=stylesheet type="text/css" href="..\formate.css">
<style type="text/css">
</style>
<script language="JavaScript">
<!--
pict1 = new Image();
pict1.src = "1.jpg";
pict11 = new Image();
pict11.src = "11.jpg";
pict2 = new Image();
pict2.src = "1.jpg";
pict21 = new Image();
pict21.src = "21.jpg";
pict3 = new Image();
pict3.src = "1.jpg";
pict31 = new Image();
pict31.src = "31.jpg";
pict4 = new Image();
pict4.src = "1.jpg";
pict41 = new Image();
pict41.src = "41.jpg";
function Bildwechsel(Bildnr,Bildobjekt)
{
window.document.images[Bildnr].src = Bildobjekt.src;
}
//-->
</script>
</head>
<BODY bgcolor=#ffffff>
<div style="position:absolute; top:0px; left:0px">
<table WIDTH=440 cellspacing=0 cellpadding=0 border=0>
<colgroup width=440 span=4>
</colgroup>
<tr valign=top>
<td>
<A href="file://D:\verzeichnis.......htm"
onmouseout=Bildwechsel(0,pict1) onmouseover=Bildwechsel(0,pict11) target="frame1">
<IMG border=0 height=25 src="1.jpg" width=100></A>
</td>
<td>
<A href="aa.htm" onmouseout=Bildwechsel(1,pict2) onmouseover=Bildwechsel(1,pict21) target=gart-2 >
<IMG border=0 height=25 src="1.jpg" width=100></A>
</td>
<td>
<A href="bb.htm" onmouseout=Bildwechsel(2,pict3) onmouseover=Bildwechsel(2,pict31) target="gart-2">
<IMG border=0 height=25 src="1.jpg" width=100></A>
</td>
<td>
<A href="cc.htm" onmouseout=Bildwechsel(3,pict4) onmouseover=Bildwechsel(3,pict41) target="gart-2">
<IMG border=0 height=25 src="1.jpg" width=100></A>
</td>
</tr>
</table>
</div>
</BODY>
</HTML>
--------mit verweis auf die zeile erscheint dann die fehlermeldung:
--------JavaScript Error: file:[...], line [...]:
---------"window.document.images[Bildnr] has no properties."
danke.