Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/10/2006, 11:43
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:

<html>
<head>
<script type="text/javascript">
var t = 0;
retardo = 100;
function cargando() {
document.getElementById("porciento").style.width = ++t + "%";
if (t < 100) setTimeout("cargando()", retardo);
}
</script>
</head>
<body onload="cargando()">
<div style="width: 200px; height: 20px; border: 1px solid gray" >
<div id="porciento" style="width: 0%; height: 100%; background-color: pink" ></div>
</div>
</body>
</html>

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