| |||
|
Código:
<html>
<head>
<style>
.activo {
overflow : scroll ;
}
.oculto {
overflow : hidden ;
}
</style>
<script>
function activa(a){
if(a)
document.getElementById("pagina").className="activo";
else
document.getElementById("pagina").className="oculto";
}
</script>
</head>
<body id="pagina" class="oculto">
<input type="button" value="mostrar" onclick="activa(1)">
<input type="button" value="ocultar" onclick="activa(0)">
</body>
</html>
|