Kevin: kleine Javascriptfrage

Beitrag lesen

das funktiniert gut:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Neue Seite 1</title>
</head>

<body>
<script language="JavaScript">
<!--
var backImage = new Array();
backImage[0] = "111.gif";
backImage[1] = "222.jpg";
backImage[2] = "333.gif";

function changeBGImage(whichImage){
if (document.body){
document.body.background = backImage[whichImage];
}
}

//-->
</script><a href="#" onMouseOver="javascript:changeBGImage(0)">Wechsel 1</a>
</script><a href="#" onMouseOver="javascript:changeBGImage(1)">Wechsel 2</a>
</script><a href="#" onMouseOver="javascript:changeBGImage(2)">Wechsel 3</a>
</body>

</html>

Kevin