Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/07/2008, 02:55
alfvg
 
Fecha de Ingreso: noviembre-2004
Mensajes: 90
Antigüedad: 20 años, 3 meses
Puntos: 0
¿ por qué falla este código ?

hola a todos, qué tal ??
tengo este código con varias funciones:

:::::::::::::::::::::::::
var contCapaInterstitial = 0;

function comprobarCapaInt()
{
if (document.getElementById("pagina")==null)
{
return false;
}
return true;
}

function OAS_ocultar()
{
document.body.style.overflow='auto';

if (comprobarCapaInt())
{
window.document.all.pagina.style.display="block";
}
window.document.all.OAS_Cortinilla.style.display=" none";
}

function cierralayer()
{
OAS_ocultar();
}

function OAS_mostrar()
{
document.body.style.overflow='hidden';

if (!comprobarCapaInt() && contCapaInterstitial < 10)
{
contCapaInterstitial ++;
setTimeout("OAS_mostrar()",500);
return;
}
else
{
if (comprobarCapaInt())
{
window.document.all.pagina.style.display="none";
}
window.document.all.OAS_Cortinilla.style.display=" block";
setTimeout('OAS_ocultar()',10000);
}
}

::::::::::::::::::

la función OAS_ocultar no me funciona en firefox, pero sí en explorer...
por qué puede ser ???
muchas gracias de antemano
alfonso
__________________
-------------
noticias de tecnología en el candelero
-------------