![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/12/2002, 13:53
|
![Avatar de Carlitos](http://static.forosdelweb.com/customavatars/avatar4305_1.gif) | Usuario no validado | | Fecha de Ingreso: mayo-2001 Ubicación: Zaragoza
Mensajes: 1.304
Antigüedad: 23 años, 9 meses Puntos: 25 | |
Pequeño apunte:
Código:
function mostrarCapa(nombreCapa) {
if (document.getElementById && document.getElementById(nombreCapa) != null)
document.getElementById(nombreCapa).style.visibility='visible';
else if (document.layers && document.layers[nombreCapa] != null)
document.layers[nombreCapa].visibility = 'show';
else if (document.all)
document.all[nombreCapa].style.visibility = 'visible';
}
function ocultarCapa(nombreCapa) {
if (document.getElementById && document.getElementById(nombreCapa) != null)
document.getElementById(nombreCapa).style.visibility='hidden';
else if (document.layers && document.layers[nombreCapa] != null)
document.layers[nombreCapa].visibility = 'hide';
else if (document.all)
document.all[nombreCapa].style.visibility = 'hidden';
}
Aquí, otra forma de mostrar/ocultar capas.
Última edición por Carlitos; 30/12/2002 a las 14:00 |