Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/07/2006, 00:34
Avatar de JuanKa
JuanKa
 
Fecha de Ingreso: septiembre-2004
Mensajes: 468
Antigüedad: 19 años, 7 meses
Puntos: 1
ok.

Me fue de maravilla hice algunos cambios y me fue bien.

Aca os dejo el codigo completo

Código HTML:
<html>
<head>
<script language="Javascript"> 
function aparecer(id) {
	var d = document.getElementById(id);
	d.style.display = "block";
	d.style.visibility = "visible";
}
function ocultar(id) {
	var d = document.getElementById(id);
	d.style.display = "none";
	d.style.visibility = "hidden";
}
window.onload = function () {
	//Al cargar la página se oculta el div de consulta
	ocultar("capaConsultar");
}
</script> 
</head>
<body>
<table>
	<tr>
		<td scope="col">
			<div align="center">
				<a href="#capaIngreso" onclick="ocultar('capaConsultar');aparecer('capaIngreso');">Ingreso</a> - 
				<a href="#capaConsultar" onclick="ocultar('capaIngreso');aparecer('capaConsultar');">Consulta</a> -
			</div>
		</td>
	</tr>
</table>
<div id="capaIngreso" style="position:absolute;text-align:center;top:100px;left:200px;border:solid 1px red;">Primer Cuadrado Ingresar</div>
<div id="capaConsultar" style="position:absolute;text-align:center;top:100px;left:200px;border:solid 1px red;">Primer Cuadrado Consultar</div>
</body>
</html> 
Gracias joaquin_win

Saludos a Todos