Ver Mensaje Individual
  #8 (permalink)  
Antiguo 11/02/2006, 16:29
Avatar de caricatos
caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años
Puntos: 1284
Hola:

Suerte que tengo mi probador de scripts, y encontré los problemas muy rápidamente...

la colección es document.images (no imagenes)... en eso lo copiaste mal...
faltaba cerrar el paréntesis detrás de complete (ahí me equivoqué yo)...
y debe empezarse con el body oculto... te gané 2 a 1

Bueno, te paso un código funcionando...

Código:
<html>
<head>
<title>.:: Plaza IP ::.</title>
<meta HTTP-EQUIV="imagetoolbar" CONTENT="no"></meta>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {background-color: #8B8B8B; margin-top: 0px; margin-bottom: 0px;}
.Estilo1 {font-family: Tahoma, Arial, Verdana; color: #FFFFFF; font-weight: bold; font-size: 11px; font-style: normal;}
.Estilo2 {font-size: 10px; color: #A79E93; font-family: Tahoma, Arial, Verdana; font-weight: normal; }
.Estilo3 {font-family: Tahoma, Arial, Verdana; color: #FFFFFF; font-size: 11px; font-weight: bold; text-decoration: underline;}
.Estilo4 { font-family: Tahoma, Arial, Verdana;
color: #4a4540;
font-weight: bold;
font-size: 12px;
}
a:link {
text-decoration: none;
color: #4A4540;
}
a:hover {
text-decoration: underline;
color: #4A4540;
}
a:active {
color: #4A4540;
text-decoration: none;
}
a:visited {
color: #4A4540;
text-decoration: none;
}
-->
</style>
<script language="javascript">
<!--
function precargar() {
imgs = document.images;
precargadas = true;
for (var i = 0, total = imgs.length; i < total; i ++)
precargadas = (precargadas && imgs[i].complete);
if (precargadas) document.body.style.visibility = "visible";
else setTimeout("precargar()", 100);
}

//-->
</script>
</head>
<body onLoad="precargar()" style="visibility: hidden">

<img src="http://www.lacabania.com/webmaster/imagen.php?id=1" />
<img src="http://www.lacabania.com/webmaster/imagen.php?id=2" />
<img src="http://www.lacabania.com/webmaster/imagen.php?id=3" />
<img src="http://www.lacabania.com/webmaster/imagen.php?id=4" />
<img src="http://www.lacabania.com/webmaster/imagen.php?id=5" />
<img src="http://www.lacabania.com/webmaster/imagen.php?id=6" />

</body>
</html>
Le metí un body sin más que imágenes...
Lo puedes copiar y pegar en el probador: www.pepemolina.com/probador/index.html (aunque hoy hay un problemilla en mi servidor)

Saludos
__________________
Por favor:
No hagan preguntas de temas de foros en mensajes privados... no las respondo