mein Code bis zur tabelle1:
<code><html>
<head>
<title>SearchBox_BilderRotation</title>
<script type="text/javascript">
<!--
function tableColor() {
document.write("test");
if(window.location.search != "") {
parameter = window.location.search;
ersetztesParam = parameter.replace(/%23/,"#");
neuerParam = ersetztesParam.slice(7,14);
document.all.tabelle1.style.backgroundColor = neuerParam;
document.all.tabelle2.style.backgroundColor = neuerParam;
document.all.tabelle3.style.backgroundColor = neuerParam;
} else {
var z = 3;
Farbe = new Array(z);
Farbe[0] = <IMG SRC="bg1.gif" ALT="text1" Border="0" width="200" height="51"></A>';
Farbe[1] = <IMG SRC="bg2.gif" ALT="text1" Border="0" width="200" height="51"></A>';
Farbe[2] = <IMG SRC="bg3.gif" ALT="text1" Border="0" width="200" height="51"></A>';
var jetzt = new Date();
var z = (jetzt.getSeconds())%3;
document.write(Farbe[z]);
document.all.tabelle1.style.backgroundColor = #dddddd;
document.all.tabelle1.style.backgroundColor = #dddddd;
document.all.tabelle1.style.backgroundColor = #dddddd;
}
}
//-->
</script>
</head>
<body bgcolor="#dddddd" onLoad="tableColor()">
<table border="0" cellpadding="0" cellspacing="0" width="200" height="301" id="tabelle1">
</code>