el código está en el header de la página
Código HTML:
<script language="JavaScript1.1"> <!-- begin hiding var locationAfterPreload = "index2.php" var lengthOfPreloadBar = <?=$anchura?> var heightOfPreloadBar = <?=$altura?> var yourImages = new Array(<?=$imagenes?>) if (document.images) { var dots = new Array() dots[0] = new Image(1,1) dots[0].src = "<?=$vaciandoImagen?>" dots[1] = new Image(1,1) dots[1].src = "<?=$llenandoImagen?>"progresses (same note as above) var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0 var loaded = new Array(),i,covered,timerID var leftOverWidth = lengthOfPreloadBar%coverage } function loadImages() { for (i = 0; i < yourImages.length; i++) { preImages[i] = new Image() preImages[i].src = yourImages[i] } for (i = 0; i < preImages.length; i++) { loaded[i] = false } checkLoad() } function checkLoad() { if (currCount == preImages.length) { location.replace(locationAfterPreload) return } for (i = 0; i <= preImages.length; i++) { if (loaded[i] == false && preImages[i].complete) { loaded[i] = true eval("document.img" + currCount + ".src=dots[1].src") currCount++ } } timerID = setTimeout("checkLoad()",10) } </script>