min image preload'er virker ikke hvorfor?
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>--[Mp3Arhiva.Com]--</title>
</head>
<body>
<script type="text/javascript">
// Skjul scriptet for JavaScript-lamme browsere.
var locationAfterPreload = "index2.php";
/* Herover: url'en til den side, der skal
indlæses efter preload */
var lengthOfPreloadBar = 200;
/* Herover: Længden af statusbjælken i pixel */
var heightOfPreloadBar = 15;
/* Herover: Højden af statusbjællken i pixel */
/* Herunder: Indsæt url'erne til de billeder,
du ønsker at preloade */
var yourImages = new Array("images/bg.gif",
"images/l.gif", "images/04_COMPANY_12.gif",
"images/r.gif", "images/r-06.gif","images/spacer.gif",
"images/04_COMPANY_07.gif","images/04_COMPANY_08.gif",
"images/04_COMPANY_09.gif","images/04_COMPANY_10.gif",
"images/04_COMPANY_11.gif","images/mp3-10-small.jpg",
"images/04_COMPANY_12.gif","images/donacija.gif",
"images/04_COMPANY_13.gif","images/04_COMPANY_14.gif",
"images/04_COMPANY_15.gif","images/04_COMPANY_16.gif",
"images/04_COMPANY_17.gif","images/04_COMPANY_18.gif",
"images/04_COMPANY_19.gif","images/04_COMPANY_20.gif",
"images/04_COMPANY_21.gif","images/04_COMPANY_24.gif",
"images/04_COMPANY_23.gif","images/bmore.gif","images/04_COMPANY_26.gif",
"images/bmore-28.gif","images/04_COMPANY_28.gif",
"images/04_COMPANY_29.gif","images/04_COMPANY_30.gif",
"images/04_COMPANY_31.gif","images/04_COMPANY_32.gif",
"images/bgo.gif","images/04_COMPANY_34.gif",
"images/04_COMPANY_35.gif","images/cop.gif",
"download/images/mp3arhiva_radio.gif","download/images/spacer.gif",
"download/images/winamp.gif","images/radio_bg",
"download/images/media_player.gif");
/* Resten af koden bør du kun ændre, hvis du
klart kan gennemskue dette JavaScript */
if (document.images) {
var dots = new Array();
dots[0] = new Image(1,1);
dots[0].src = "images/bg.gif"
/* Herover: Farven på statusbjælken laves af en
1x1 kulørt pixel. Du kan indsætte en anden kulørt
pixel, men kun 1x1 pixel */
dots[1] = new Image(1,1);
dots[1].src = "images/bg.gif"
/* Herover: Farven på statusbjælken efterhånden som
processen skrider frem. Du kan indsætte en anden
kulørt pixel, men kun 1x1 pixel */
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)
}
// slut skjul script -->
</script>
<center>
<p class="stor">UCITAVAMO Mp3Arhiva.Com, Zamolili bi vas da se malo strpite...<p>
<span class="lille">0% </span>
<script language="JavaScript1.1">
<!-- Skjul scriptet for JavaScript-lamme browsere
if (document.images) {
var preloadBar = ''
for (i = 0; i < yourImages.length-1; i++) {
preloadBar += '<img src="' + dots[0].src + '" width="'+ coverage + '" height="' + heightOfPreloadBar + '" name="img' + i + '" align="absmiddle">'
}
preloadBar += '<img src="' + dots[0].src + '" width="' + (leftOverWidth+coverage) + '" height="' + heightOfPreloadBar + '" name="img' + (yourImages.length-1) + '" align="absmiddle">'
document.write(preloadBar)
loadImages()
}
/* Du bør ha' et link til den "rigtige" side for
det tilfældes skyld, at brugeren straks vil springe
videre, eller dersom brugerens browser ikke
understøtter JavaScript. */
document.write('<p><b><a href="index2.php">Nemam Strpljenja</a></b></p>')
// slut skjul script -->
</script>
</center>
</body>
</html>