Hola otra vez:
No era necesario iniciar otro mensaje... cuando creas que no se te ha entendido es mejor intentar explicar mejor el asunto...
Hice un ejemplo sencillo:
Código:
<html>
<head>
<script>
var porciento = 0;
function porcentuar() {
porciento++;
document.getElementById("porcentaje").style.width = porciento + "%";
if (porciento < 100)
setTimeout("porcentuar()", 20);
}
</script>
</head>
<body onload=porcentuar()>
<div style="height: 50px; background-color: #eeeeee; border: 2px blue solid" >
<div id="porcentaje" style="height: 100%; width: 0; background-color: gray" >
</div>
</div>
</body>
</html>
Saludos