Ver Mensaje Individual
  #7 (permalink)  
Antiguo 13/10/2009, 12:42
Avatar de deirdre
deirdre
 
Fecha de Ingreso: mayo-2009
Mensajes: 690
Antigüedad: 15 años
Puntos: 45
Respuesta: Ocultar capas

Prueba esto:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sin título 1</title>
<style type="text/css">
#contenido1 {
	position:absolute;
	top:3%; left:10%; 
	width:80%; 
	height:30%;
	background:#039;
	filter:alpha(opacity=20); /*Indica una opacidad del 60% (Equivalente al 40% de transparencia) en Internet Explorer.*/
	-moz-opacity:.20; /*Indica una opacidad del 60% en Mozilla.*/
	opacity:.20; /*Indica opacidad del 60% en Firefox y Opera. */
	cursor:pointer;
}

#contenido2 {
	position:absolute;
	top:3%; left:10%; 
	width:80%; 
	height: 30%;
	background:#FF3;
	cursor:pointer;
}
</style>
<script type="text/javascript">
function mostrar(){  
document.getElementById('contenido2').style.visibility="visible";  
}  
function ocultar(){  
document.getElementById('contenido2').style.visibility="hidden";  
}
</script>
</head>

<body>
<div id="contenido1" onmouseover="mostrar()">Contenido 1</div>
<div id="contenido2" onmouseout="ocultar()">Contenido 2</div>
</body>

</html> 
Bye