Salve, mi inserisco nella discussione perchè ho lo stesso problema.
In pratica al passaggio del mouse su una cella voglio modificare l'immagine di sfondo (background), mentre quando il mouse è fuori dalla cella voglio che ritorni quella iniziale.
Ho fatto così ma nn funziona:
Che devo fare??? vi prego aiutatemi...codice:<script language=""JavaScript""> function cambia (x,ImageFile){ document.getElementById(x).style.background = ImageFile; } function torna_sfondo (y) { document.getElementById(y).style.background="http://www.nomesito.it/vuoto.png"; } </script> <p class="Stile32"></p> <table width="724" height="563" border="1" background="http://www.nomesito.it/esterno_1.jpg"> <tr height="25%"> <td width="20%" id="cella1" onMouseOver="cambia('cella1','http://www.nomesito.net/candela.gif')" onMouseOut="torna_sfondo('cella1')" background="http://www.nomesito.it/vuoto.png"> <p align="center"> <a href="Home.htm" target="Corpo"> Prova</a></p> </td> <td width="20%"></td> <td width="20%"></td> <td width="20%"></td> <td width="20%"></td> </tr> </table></th>

Rispondi quotando