Prova così:
Codice:
<html>
<head>
<title>Tabelle colorate al passaggio del mouse</title>
<script language="javascript1.2" type="text/javascript">
function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="table")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}
function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}
</script>
<style type="text/css">
a {
font-size: 14px;
color: #FFCC00;
text-decoration: none;}
a:visited,active,link {
color: #FFCC00;
text-decoration: none;}
a:hover {
color: #000000;
text-decoration: none;
}
</style>
</head>
<body bgcolor="#000000" text="#FFCC00">
<table align="center" onMouseover="changeto('#FFCC00')" onMouseout="changeback('#000000')" border="1">
<td>
<a href="">Testo link</a>
</td>
<td>
<a href="">Testo link</a>
</td>
<td>
<a href="">Testo link</a>
</td>
<td>
<a href="">Testo link</a>
</td>
</table>
</body>
</html>
Comunque in questo modo l'area di linkaggio rimane sempre e solo il testo, solo che le celle cambiano colore al passaggio del mouse... Inoltre con Mozilla non funge...