[b]Bro Co_don SanAdH[/b]
tolong script yang di bawah ini:thumbsdown:..pengn dirumah jadi bentuk array...
saya masih ga ngerti tuh caranya=)
tolong yah=)
[spoiler]window.onLoad=function(){
var now = new Date();
var hours = now.getHours();
var psj=0;
//18-19 night
if (hours > 17 && hours < 20){
document.body.style.background="url(URL GAMBARNYA 1)";
}
//20-21 night
if (hours > 19 && hours < 22){
document.body.style.background="url(URL GAMBARNYA 2)";
}
//22-4 night
if (hours > 21 || hours < 5){
document.body.style.background="url(URL GAMBARNYA 3)";
}
//9-17 day
if (hours > 8 && hours < 18){
document.body.style.background="url(URL GAMBARNYA 4)";
}
//7-8 day
if (hours > 6 && hours < 9){
document.body.style.background="url(URL GAMBARNYA 5)";
}
//5-6 day
if (hours > 4 && hours < 7){
document.body.style.background="url(URL GAMBARNYA 6)";
}
document.body.style.color="url(URL GAMBARNYA 7)";
}[/spoiler]