Seite 1 von 1

Problem bei Validierung

Verfasst: 11.12.2006 21:43
von Lohgock-Trainer
Ich wollte mal meine Website vom W3C validieren lassen. Der HTML Code ist auch in Ordnung, die JavaScript stellen machen aber Probleme:

Code: Alles auswählen

<script language="javascript" type="text/javascript">
<!--

function makeArray(n) {
this.length = n;
for (var i=1; i<=n; i++) {
this[i] = "";
}
return this;
}
var i;
function imagealeatoire() {
i = Math.floor(5 * Math.random() + 1);
return image[i];
}
image = new makeArray(5);
image[1]="http://pokegalaxy.de/images/layout/logos/fire.png";
image[2]="http://pokegalaxy.de/images/layout/logos/water.png";
image[3]="http://pokegalaxy.de/images/layout/logos/grass.png";
image[4]="http://pokegalaxy.de/images/layout/logos/electric.png";
image[5]="http://pokegalaxy.de/images/layout/logos/ice.png";

-->
</script>
Was kann man machen?

Verfasst: 11.12.2006 22:06
von [Flex]
Die Datei auslagern?