Ayuda en precarga

Kenny
06 de Agosto del 2003
Hola amigos javamaniacos ggggg... weno yo lo k keria pedir esk a ver si hay alguien k me diga plz k error tengo en esta precarga, pues se me carga solo el 60% de los archivos aki os pongo el codigo y a ver si alguien me puede ayudar GRACIAS

<script language="JavaScript1.2">

startingColor = new Array()
endingColor = new Array()


var tusimagenes = new Array("baners.swf","button1.swf","button2.swf","button2.swf","button3.swf","button4.swf","button5.swf","button6.swf","button7.swf","fondoarriba.png","gossip.gif","marcareef.gif","posicionollie.jpg","reefbamba.gif","reefbambas.gif","santacruz.gif","stevecaballero.gif","tiendareef.gif","vanslogo.gif","worldindustries.com.gif","skate.gif")

var locationAfterPreload = "principal.htm"
var preloadbarWidth = 250
var preloadbarHeight = 15
var backgroundOfGradient = "#000000"


startingColor[0] = "c"
startingColor[1] = "f"
startingColor[2] = "f"


endingColor[0] = "c"
endingColor[1] = "0"
endingColor[2] = "0"


var gap = 5


if (!document.all) location.replace(locationAfterPreload)
var a = 10, b = 11, c = 12, d = 13, e = 14, f= 15, i= 16, j= 17, ones = new Array(), sixteens = new Array(), diff = new Array();
var convert = new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"), imgLen = tusimagenes.length;
var loaded = new Array(), preImages = new Array(), currCount = 0, pending = 0, h = 0, hilite = new Array(), cover = new Array();
var num = Math.floor(preloadbarWidth/gap);
for (i = 0; i < 3; i++) {
startingColor[i] = startingColor[i].toLowerCase();
endingColor[i] = endingColor[i].toLowerCase();
startingColor[i] = eval(startingColor[i]);
endingColor[i] = eval(endingColor[i]);
diff[i] = (endingColor[i]-startingColor[i])/num;
ones[i] = Math.floor(diff[i]);
sixteens[i] = Math.round((diff[i] - ones[i])*15);
}
endingColor[0] = 0;
endingColor[1] = 0;
endingColor[2] = 0;
i = 0, j = 0;
while (i <= num) {
hilite[i] = "#";
while (j < 3) {
hilite[i] += convert[startingColor[j]];
hilite[i] += convert[endingColor[j]];
startingColor[j] += ones[j];
endingColor[j] += sixteens[j];
if (endingColor[j] > 15) {
endingColor[j] -= 15;
startingColor[j]++;
}
j++;
}
j = 0;
i++;
}
function loadImages() {
for (i = 0; i < imgLen; i++) {
preImages[i] = new Image();
preImages[i].src = tusimagenes[i];
loaded[i] = 0;
cover[i] = Math.floor(num/imgLen)*(i+1)
}
cover[cover.length-1] += num%imgLen
checkLoad();
}
function checkLoad() {
if (pending) { changeto(); return }
if (currCount == imgLen) { location.replace(locationAfterPreload); return }
for (i = 0; i < imgLen; i++) {
if (!loaded[i] && preImages[i].complete) {
loaded[i] = 1; pending++; currCount++;
checkLoad();
return;
}
}
setTimeout("checkLoad()",10);
}
function changeto() {
if (h+1 > cover[currCount-1]) {
var percent = Math.round(100/imgLen)*currCount;
if (percent > 100) while (percent != 100) percent--;
if (currCount == imgLen && percent < 100) percent = 100;
defaultStatus = "Loaded " + currCount + " out of " + imgLen + " images [" + percent + "%].";
pending--;
checkLoad();
return;
}
eval("document.all.cell" + (h+1) + ".style.backgroundColor = hilite[h]");;
h++;
setTimeout("changeto()",2);
}
defaultStatus = "Loaded 0 out of " + imgLen + " images [0%]."
// end hiding -->
</script>
<title>precarga</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#999999">
<center>
<font color="#CCCCCC"><font face="Verdana, Arial, Helvetica" size="2">
<center>
Cargando imagenes de la página... Por Favor, espere..
</center>
</font><script language="JavaScript1.2">
<!-- beging hiding
document.write('<table border="0" cellpadding="0" cellspacing="0" width="' + preloadbarWidth + '"><tr height="' + preloadbarHeight + '" bgcolor="' + backgroundOfGradient + '">');
for (i = 0; i < num; i++) {
document.write('<td width="' + gap + '" id="cell' + (i+1) + '"></td>');
}
document.write('</tr></table>');



document.write('<p><small><a href="javascript:location.replace(locationAfterPreload)">Saltar carga de imágenes previa</a> &nbsp;| &nbsp;<a href="principal.html">Script Credits</a></small></p></font>')
loadImages();
// end hiding -->
</script>
</center>
</font>
</body>
</html>

SI ALGUIEN PUEDE AYUDARME O BIEN K ME LO ESCRIBA AKI LA SOLUCION O BIEN K ME ESCRIBA A MI CORREO

[email protected]

Paco
06 de Agosto del 2003
","worldindustries.com.gif","

Es posible que te sobre el ".com"
en el nombre de la imagen, a mi si que me funciona, por cierto muchas gracias porque llevaba tiempo investigando este script y no me realizazaba la redireccion al final,... y con este si... problema resuelto... espero.
Paco