|
|
|
|
Bonjour,
Je voulais faire d'une ligne d'un tableau un lien,ça a marché sous firefox mais pas sous IE,donc je l'ai fait d'un autre mannière avec du JS: <tr onclick="document.location='page.php'" >
le problème c'est qu'il y a un checkbox dans chaque ligne du tableau,et quand on essaye de coché une case,ça fait comme si j'ai clické sur la ligne et me renvoi vers "page.php" alors j'ai fait :
<tr class="dec" onmouseover="this.style.backgroundColor='white';this.style.border='3px #0066CC outset';" onmouseout="this.style.backgroundColor='#ededed';this.style.border='#b1d2e1';"> <input type="checkbox" class="checkbox" /></td> <a href="jh.html" onclick="document.location='#'"> <td> dsf </td> <td > $day </td> </tr>
Configuration: Windows 2000 Firefox 3.0.8
Si je comprends bien, il te manque des informations :
<tr class="dec" onmouseover="this.style.backgroundColor='white';this.style.border='3px #0066CC outset';" onmouseout="this.style.backgroundColor='#ededed';this.style.border='#b1d2e1';" onclick="document.location.href='ton_lien';"> <input type="checkbox" class="checkbox" /></td> <a href="jh.html" onclick="document.location.href='#'"> <td> dsf </td> <td > $day </td> </tr> Essaye mais... Sans coeur, on ne pas avancer, mais sans jambes, on le peut. => Ne vous découragez pas ! |
Si tu remplaces par :
<tr class="dec" onmouseover="this.style.backgroundColor='white';this.style.border='3px #0066CC outset';" onmouseout="this.style.backgroundColor='#ededed';this.style.border='#b1d2e1';" onclick="document.location.href='ton_lien';">
<input type="checkbox" class="checkbox" /></td>
<a href="jh.html" onfocus="document.location.href='#'">
<td> dsf </td>
<td > $day </td>
</tr>
??? Sans coeur, on ne pas avancer, mais sans jambes, on le peut. => Ne vous découragez pas ! |