Ciao,
qualcuno mi sa spiegare perché questo codice non funziona su tutti gli explorer (su safari e firefox nessun problema)
Codice PHP:
var randomImages = ['bg1','bg2','bg3','bg4','bg5'];
var rndNum = Math.floor(Math.random() * randomImages.length);
$("body").css({ background: "url(xxx/sfondi/" + randomImages[rndNum] + ".jpg) #000 no-repeat top center fixed" });
Mi butta fuori questo:
Codice PHP:
background: rgb(0, 0, 0) url(xxx/sfondi/bg5.jpg) no-repeat fixed center top;
-moz-background-clip: border;
-moz-background-origin: padding;
-moz-background-inline-policy: continuous;
Grazie.