<TD onMouseover="document.bgcolor=FF5A21" height ... ></TD>
Wieso funktioniert das net?
Ich will, dass sich die Hintergrundfarbe der Zelle ändert.
Danke
Bitte:
die farbe ändert sich hier beihier bei mouseover.
ich hoffe, es hilft dir weiter:
<html>
<head>
<style><!--
.relative { position:relative; }
//--></style>
<script language="JavaScript"><!--
var color = '';
function over(id) {
if (document.layers) {
window.color = window.document.layers[id].bgColor;
window.document.layers[id].bgColor = '#FF0000';
}
else if (document.all) {
window.color = window.document.all[id].style.background;
window.document.all[id].style.background = '#FF0000';
}
}
function out(id) {
if (document.layers)
window.document.layers[id].bgColor = window.color;
else if (document.all)
window.document.all[id].style.background = window.color;
}
//--></script>
</head>
<body>
<table>
<tr>
<td id="id1" class="relative"><a href="http://www.irt.org/" onMouseOver="window.over('id1')" onMouseOut="window.out('id1')">test</a></td>
<td id="id2" class="relative"><a href="http://www.irt.org/" onMouseOver="window.over('id2')" onMouseOut="window.out('id2')">test</a></td>
</tr>
</table>
</body>
</html>