Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/11/2012, 13:39
Avatar de tutorias
tutorias
 
Fecha de Ingreso: octubre-2012
Ubicación: Medellin
Mensajes: 69
Antigüedad: 11 años, 6 meses
Puntos: 13
De acuerdo Respuesta: Imagen de Carga al entrar en web

Un saludo.

Podrias implementar ajax para despues invocar la carga de la web, pero también puedes simplemente ocultar un <div> al cabo de los dos segundos.

Ejemplo:
Código HTML:
<!DOCTYPE html>
<html lang="es-CO">
<head>
	<meta charset="UTF-8">
	<title>@tutorias</title>
	<style type="text/css">
	#saludo{
		background-color:hsla(0,0%,40%,.4);
		min-width:99%;
		min-height:99%;
		position:absolute;
		top:0;
		color:#900;
		font-size: 4em;
		text-align: center;
		line-height: 10em;
	}
	</style>
	<script language="javascript">
		v=new Date();
		function getTime() {
			n = new Date();
			s = 1 - Math.round((n.getTime() - v.getTime())/2000);
			if(s==0)
				document.getElementById("saludo").setAttribute("style","display:none");

			window.setTimeout("getTime();", 2000);
		}
		window.onload = getTime(Math.random(1,2000));
    </script>
</head>
<body>
<div id="saludo">Bienvenid@s a mi web!!</div>

	<h1>titulo de la web</h1>
	<h2>subtitulo de la web</h2>
	contenido de  la web...
</body>
</html>