warum funktioniert das nicht?? finde den fehler einfach nicht...
<head>
<title>Versuch 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
grau_enter = newImage("bilder\grau-enter.gif");
grau_leave = newImage("bilder\grau-leave.gif");
enter = newImage("bilder\enter.gif");
leave = newImage("bilder\leave.gif");
preloadFlag = true;
}
}
-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="7c7c7c" ONLOAD="preloadImages();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<TABLE WIDTH=500 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<tr>
<td></td><td></td>
<td></td>
</tr>
<tr>
<td><A HREF="start.htm"
ONMOUSEOVER="changeImages(grau, grau_enter); return true;"
ONMOUSEOUT="changeImages(grau, grau); return true;" target="_self"></A></TD>
<td><A HREF="http://www.google.de"
ONMOUSEOVER="changeImages('grau', 'grau_leave'); return true;"
ONMOUSEOUT="changeImages('grau', 'grau'); return true;" target="_self"></A></TD>
<td></td>
</tr>
</TABLE>
</body>
</html>