Coucou, jai un soucis avec mon javascriopt et mon html que je n'arrive pas à résoudre. voilà le code du script et du html. Il marche sous IE mais j'aurais besoin que ca marche aussi sous Firefox.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 function TabClick( nTab ) { for (i = 0; i < corpsonglet.length; i++) { tabs[i].className = "TabBorderBottom TabCommon TabOff"; corpsonglet[i].style.display = "none";} corpsonglet[nTab].style.display = "block"; tabs[nTab].className = "TabCommon TabOn TabActiveBackground TabActiveBorderLeftRight"; }Donc tout ca marche sous IE, mais sous Firefox, il semble qu'il ne voit pas à quoi correspond corpsonglet. Je vois pas où est le soucis. Is vous avez des idées je suis rpeneur. merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 <TD COLSPAN=5 CLASS="TabContent TabActiveBackground TabActiveBorderLeftRight TabContentBottom"> <DIV id="corpsonglet"> aaaa </DIV> <DIV ID="corpsonglet"> bbbb </DIV> <DIV id="corpsonglet"> cccc </DIV> <DIV id="corpsonglet"> dddd </DIV> </TD> </TR>
Partager