<script type="text/javascript">
function setproperty(Objet,value,initvalue){
var cellule = document.getElementById(Objet);
if(cellule.style.emptyCells == value){
cellule.style.emptyCells = initvalue;
}else{
cellule.style.emptyCells = value;
}
}
</script>
<table width="400" border="1" cellspacing="0" cellpadding="0">
<tr>
<td style="cursor:pointer; cursor:hand; " onclick="setproperty('cell0','hide','show')">ObjetJavascript.style.emptyCells = "hide"; <br>
Cliquez moi. emptyCells -> </td>
<td id="cell0" style="empty-cells:show"></td>
</tr>
<tr>
<td style="cursor:pointer; cursor:hand" onclick="setproperty('cell1','show','hide')">ObjetJavascript.style.emptyCells = "show"; <br>Cliquez moi. emptyCells -> </td>
<td id="cell1" style="empty-cells:hide" width="100"></td>
</tr>
</table>
| ObjetJavascript.style.emptyCells = "hide"; Cliquez moi. emptyCells -> |
|
| ObjetJavascript.style.emptyCells = "show"; Cliquez moi. emptyCells -> |
