Ragazzi ho un problema che nn riesco a risolvere e mi sta facendo uscire pazzo!!!![]()
Ho questo codice javascript
function startmenu()
{
document.getElementById('menu1').style.display = "none";
}
function menufunc(menuId)
{
if(document.getElementById(menuId).style.display == "none")
{
startmenu();
document.getElementById(menuId).style.display = "block";
}
else
{
startmenu();
}
}
Questo script fa apparire e scomparire un menu...
<a href="javaScript:menufunc('menu1');"><table background="images/sfondo_testatina_principale.jpg" width="250" style="height:31px;" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td class="testo18_bianco" style="padding-left:10px;">$MenuItem;</td>
<td align="right" style="padding-right:5px;" class="testo12_rosa">
</td>
</tr>
</table></a>
Se uso questo codice mi funziona con firefox e chrome mentre
<table background="images/sfondo_testatina_principale.jpg" width="250" style="height:31px;" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<a href="javaScript:menufunc('menu1');"> <td class="testo18_bianco" style="padding-left:10px;">$MenuItem;</td>
<td align="right" style="padding-right:5px;" class="testo12_rosa">
</td></a>
</tr>
</table>
mi funziona solo su internet explorer....
Come posso fare a risolvere questo problemo e farlo funzionare su tutti i browser???
Grazie mille

Rispondi quotando