Meine richtige Code sieht aus (falls jemand braucht):
<script type="text/javascript">
<!--
if (document.images)
{
Normal1= new Image();
Normal1.src = "Button/aboutmebraun.gif";
Highlight1 = new Image();
Highlight1.src = "Button/aboutmegelb.gif";
Normal2 = new Image();
Normal2.src = "Button/myphotoalbumbraun.gif";
Highlight2 = new Image();
Highlight2.src = "button/myphotoalbumgelb.gif";
Normal3= new Image();
Normal3.src = "Button/mypicturesbraun.gif";
Highlight3 = new Image();
Highlight3.src = "Button/mypicturesgelb.gif";
Normal4 = new Image();
Normal4.src = "Button/contactbraun.gif"
Highlight4 = new Image();
Highlight4.src = "Button/contactgelb.gif";
}
function Bildwechsel (Bildnr, Bildobject)
{
window.document.images[Bildnr].src = Bildobject.src;
}
function preload() {
for(var img, i = 0; i < arguments.lenght; i++) {
img = new Image;
img.src = arg[i];
}
}
//-->
</script>
<a href="meinlebenslauf.html">
<img src="Button/aboutmebraun.gif" onmouseover="this.src='Button/aboutmegelb.gif'"
onmouseout="this.src='Button/aboutmebraun.gif'" alt=""></a>
<a href="fotoalbums.html">
<img src="Button/myphotoalbumbraun.gif" onmouseover="this.src='Button/myphotoalbumgelb.gif'"
onmouseout="this.src='Button/myphotoalbumbraun.gif'" alt=""></a>
<a href="Kunst.html">
<img src="Button/mypicturesbraun.gif" onmouseover="this.src='Button/mypicturesgelb.gif'"
onmouseout="this.src='Button/mypicturesbraun.gif'" alt=""></a>
<a href="kontakt.html">
<img src="Button/contactbraun.gif" onmouseover="this.src='Button/contactgelb.gif'"
onmouseout="this.src='Button/contactbraun.gif'" alt=""></a>
Liebe Grüsse aus Rülzheim
Davisa