![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/01/2005, 04:25
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Prueba esto: Código HTML:
<html>
<head>
<script>
hacer=1;
function mostrar_o_no(capa){
hacer=-hacer;
document.getElementById('boton').value=(hacer==1)?"Ocultar Capa":"Mostrar Capa";
document.getElementById(capa).style.visibility=(hacer==1)?"visible":"hidden";
}
</script>
</head>
<body>
<input id="boton" type="button" onclick="mostrar_o_no('primera')" value="Ocultar Capa"><br>
<br>
<div id="primera" style="width:200px;height:300;border:solid 1px black;"></div>
</body>
</html>
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.
Última edición por KarlanKas; 12/01/2005 a las 05:40 |