Salut, j'ai un problème avec mon code, il fonctionne très bien sous internet exploreur mais pas sous netscape et firefox. Lorsque j'utilise "l'attribut" ID, les tableaux sont affichés n'importe comment, cependant lorsque je retire cet "attribut", tout va bien mais alors mon javascript ne peux plus oppérer.
voici le code:
mes tableaux imbriqués:
Mon javascript qui affiche ou cache certainne ligne du tableau précédant:
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 <table bordercolor="#EA1D24" cellspacing="0" cellpadding="2" border="1" style="margin-top:10px;margin-bottom:10px; " bgcolor="#FFFFFF" width="80%"> echo "<tr class='ECLElementListe' id=\"liste".$i."\" >"; //echo "<tr class='ECLElementListe'>";//debug problème id!!!! echo "<td onmouseover=\"TableMouseOver(this,$i);\" onmouseout=\"TableMouseOut(this,$i);\">"; echo "<table cellspacing='0' cellpadding='0' border='0' width='100%' height='100%'>"; echo "<tr onClick=\"document.location='".$href."'\">"; echo "<td>".$text."</td>"; echo "<td width='100px' align='left' id='CliquezIci".$i."' style='visibility:hidden'>cliquez ici</td>"; echo "</tr>"; echo "</table>"; echo "</td>"; echo "</tr>";
Si je remplace la ligne:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 while(document.getElementById('liste'+j)) { if((j>=min)&&(j<=max)) { document.getElementById('liste'+j).style.display='block'; nbPanel++; } else { document.getElementById('liste'+j).style.display='none'; } j++; }
par la ligne d'en dessous qui est commenté ça marche mais plus d'ID!!!
Code : Sélectionner tout - Visualiser dans une fenêtre à part echo "<tr class='ECLElementListe' id=\"liste".$i."\" >";![]()
Quelqu'un aurait une idée?
Code : Sélectionner tout - Visualiser dans une fenêtre à part //echo "<tr class='ECLElementListe'>";//debug problème id!!!!
Partager