Hola otra vez:
Debo admitir que a mi tampoco me funcionaba bien, pero haciendo pruebas encontré fallos en la función mostrar...
Prueba con esta versión:
Código PHP:
function mostrar() {
for (var i = 0; i < imagenes.length; i ++)
if (imagenes[i].complete)
if (!contenido[i]) {contenido[i] = true; suma++;}
cargando = (suma < imagenes.length);
if (!ventana) {
ventana = window.open("", "", "top=" + (screen.height / 2 - 20) + ",left=" + (screen.width / 2 - 125) + ",width=250,height=40");
ventana.document.writeln(detalle());
}
else {
ventana.document.getElementById("valor").style.width = new String(suma * porciento) + "%";
}
if (cargando) {
setTimeout("mostrar()", 10);
// window.status = "cargando";
}
else {
ventana.close();
ventana = false;
// window.status = "descarga";
}
}
Todo lo demás parece estar bien.
Saludos