Hallo,
das Thema wurde grade in de.comp.lang.javascript disskutiert. Vielleicht hilft Dir eine Loesung von
Gregor Weissenborn, die ich der Einfachheit halber hier einfach mal poste.
Gruss Joachim
<HTML>
<HEAD>
<TITLE>Color Change</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function setCellColor(cell, color){
var l, i=0;
if (document.layers){
if ((l = document.layers[cell]) != null){
l.bgColor = color;
}}
else {
if ((l = document.all[cell]) != null){
l.bgColor = color;
}}
}
file://-->
</SCRIPT>
</HEAD>
<BODY>
<TABLE>
<TR BGCOLOR = BLACK>
<TD ID="cell1" STYLE="position: relative">
<P><A HREF="forum.htm"
onMouseOver="javascript:setCellColor('cell1','#FFFF00')"
onMouseOut="javascript:setCellColor('cell1','0')">AAAAA</A></TD>
</TR>
<TR BGCOLOR = BLACK>
<TD ID="cell2" STYLE="position: relative">
<P><A HREF="forum.htm"
onMouseOver="javascript:setCellColor('cell2','#FFFF00')"
onMouseOut="javascript:setCellColor('cell2','0')">BBBBB</A></TD>
</TR>
<TR BGCOLOR = BLACK >
<TD ID="cell3" STYLE="position: relative">
<P><A HREF="forum.htm"
onMouseOver="javascript:setCellColor('cell3','#FFFF00')"
onMouseOut="javascript:setCellColor('cell3','0')">CCCCC</A></TD>
</TR>
</TABLE>
</BODY>
</HTML>