Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/06/2004, 15:01
Berletzis
 
Fecha de Ingreso: noviembre-2003
Mensajes: 343
Antigüedad: 20 años, 6 meses
Puntos: 0
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Columnas&nbsp; 1&nbsp; 2&nbsp; 3&nbsp; 4&nbsp; 5</title>

<script language="javascript">
var showMode = 'table-cell';
if (document.all) showMode='block';
function toggleVis(btn){
btn = document.forms['tcol'].elements[btn];
cells = document.getElementsByName('t'+btn.name);
mode = btn.checked ? showMode : 'none';
for(j = 0; j < cells.length; j++) cells[j].style.display = mode;
}

</script>

</head>

<body>
<form name="tcol" onsubmit="return false">
Columnas
<input type=checkbox name="col1" onclick="toggleVis(this.name)" checked> 1
<input type=checkbox name="col2" onclick="toggleVis(this.name)" checked> 2
<input type=checkbox name="col3" onclick="toggleVis(this.name)" checked> 3
<input type=checkbox name="col4" onclick="toggleVis(this.name)" checked> 4
<input type=checkbox name="col5" onclick="toggleVis(this.name)" checked> 5
</form>

<table border=1>
<tr>
<td name="tcol1" id="tcol1" class="bold">columna1</td>
<td name="tcol2" id="tcol2">columna2</td>
<td name="tcol3" id="tcol3" class="italic">columna3</td>
<td name="tcol4" id="tcol4">columna4</td>
<td name="tcol5" id="tcol5">columna5 </td>
</tr>
<tr>
<td name="tcol1" id="tcol1" class="bold">&nbsp;</td>
<td name="tcol2" id="tcol2">&nbsp;</td>
<td name="tcol3" id="tcol3" class="italic">&nbsp;</td>
<td name="tcol4" id="tcol4">&nbsp;</td>
<td name="tcol5" id="tcol5">&nbsp;</td>
</tr>
</table>

</body>

</html>
__________________


La tecnología es un hecho objetivo, y el resultado está sujeto a la voluntad humana.