Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/08/2009, 08:20
Avatar de pcarvajal
pcarvajal
 
Fecha de Ingreso: enero-2002
Mensajes: 701
Antigüedad: 22 años, 3 meses
Puntos: 8
Respuesta: Posicion de Div (facilito)

Excelente! Muchas gracias!

Cita:
<html>
<head>
<script type="text/javascript">
function miFuncion() {
document.getElementById('t1').style.visibility="hi dden";
document.getElementById('t2').style.display="none" ;
document.getElementById('t3').style.display="inlin e";
}
</script>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="1">
<tr>
<td width="100%">&nbsp;</td>
<td><div id="t1"><a href="javascript:void(0);" onclick="miFuncion()">Ocultame!</a></div></td>
</tr>
<tr>
<td colspan="2"><div id="t2" style="display:block;">texto visible</div><div id="t3" style="display:none;">texto oculto</div></td>
</tr>
</table>
</body>
</html>
Lo que más me llamó la atención es que no tuve necesidad de usar los position:"algo", que fué lo que más me gustó. De hecho el script funciona en IE y en FF

Saludos!