J'ai remplacer ma fonction par la tienne mais ça fonctionne pas .
Version imprimable
Ah oui ...
Mieux comme ça ?Code:
1
2
3
4
5
6
7
8 function montre(id) { var d = document.getElementById(id); var actuel = d.style.display; for (var i = 1; i<=10; i++) { if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';} } if (d && actuel == 'none') {d.style.display='block';} }
A+
Oui ça fonctionne.
Je te remercies pour ta patience et ton aide cet après midi.
Merci bien
Amicalement Tchupa.