
14/08/2008, 13:37
|
 | | | Fecha de Ingreso: noviembre-2007 Ubicación: Caracas
Mensajes: 489
Antigüedad: 17 años, 3 meses Puntos: 14 | |
Respuesta: Mostrar div con informacion entre dos items o registros. prueba esto:
<script>
function toggle(id){
element = document.getElementById(id);
if (element.style.display == 'none')
element.style.display = 'block';
else element.style.display = 'none';
}
</script>
<div>
<div>
<table width="200" border="1">
<tr>
<td> </td>
<td> </td>
<td><label>
<input type="button" value="Boton" onclick="toggle('muestraOculta')" />
</label></td>
</tr>
</table>
</div>
<div style="display:none" id="muestraOculta">
<table width="200" border="1">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
</div>
Recuerda que el div inicialmente debe estar oculto mediante estilo.
__________________ My path is lit by my own fire, I only go where I desire |