Code:
function set_background()
{
var background = new Array();
background[0] = "file:///D:/Sonstiges/hintergr%FCnde/matrix.png";
background[1] = "file:///D:/Sonstiges/hintergr%FCnde/whirlpool_galaxy.jpg";
background[2] = "file:///D:/Sonstiges/hintergr%FCnde/matrix.png";
background[3] = "file:///D:/Sonstiges/hintergr%FCnde/whirlpool_galaxy.jpg";
document.getElementById("body").style.backgroundImage = background[(Math.random()*100)%(background.length-1)];
}
Also diese Script soll Automtsich beim laden der Seite das hintergrundbild umstellen es funktioniert aber leider nicht warum??