[Résolu] Netscape7.0 et javascript
Bonjour,
j'utilise du javascript pour afficher/masquer un menu. sur IE6.x ça marche bien. Cependant, quand j'utilise Netscape7.0 le menu ne s'ouvre pas??!! 8O
voici mon code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" id="rub1" style="display:block; ">
<tr class="td_menu">
<td align="left" valign="middle" style="padding-left:2px; 13px; "><a href="javascript:display_hide(rub1, rub01)"><img src="habillage/ferme.gif" title="afficher/masquer le menu"></a></td>
<td height="18" align="center" valign="middle"><a href="#URL_RUBRIQUE" class="a_menu">#TITRE</a></td>
</tr>
</table>
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" id="rub01" style="display:none
<tr class="td_menu">
<td align="left" valign="middle" style="padding-left:2px; width:13px; "><a href="javascript:display_hide(rub1, rub01)"><img src="habillage/ferme.gif" title="afficher/masquer le menu"></a></td>
<td height="18" align="center" valign="middle"><a href="#URL_RUBRIQUE" class="a_menu">#TITRE</a></td>
</tr>
<tr><td colspan="2">titre1</td></tr>
<tr><td colspan="2">titre2</td></tr>
<tr><td colspan="2">titre3</td></tr>
</table> |
la fonction javascript display_hide():
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
function display_hide(lyr ,hid)
{
var disply;
var h;
var disply;
disply=lyr.style.display
if(disply=='none')
{
lyr.style.display='block'
hid.style.display='none'
}
else
{
lyr.style.display='none'
hid.style.display='block'
}
} |
quelqu'un a une explication???
PS: personnellement j'utilise IE pour Internet mais d'autres personnes utilisent NS alors je dois faire en sorte que le site marche pour tout le monde
Merci et bonne journée.
[Déplacé par King Kaiser]