top



I have this code and want to customize the forum

phpBB2 (subsilver)


Code:
<script language="JavaScript">



day=new Date()    //..get the date



x=day.getHours()    //..get the hour



if(x>=0 && x<3) {





  document.write('<style type="text/css">body{background: white url(http://www.wallpaper4me.com/images/wallpapers/djabstract-845499.jpeg 00:00 - 03:00 ); color: blackbackground-position: center; background-repeat: no-repeat; background-attachment: fixed; }</style>')

} else



if(x>=3&& x<8) {





  document.write('<style type="text/css">body{background: white url(http://fc09.deviantart.net/fs41/f/2009/021/c/1/Dj__s_Wallpaper_by_robi19.jpg 03:00 -08:00 ); color: blackbackground-position: center; background-repeat: no-repeat; background-attachment: fixed; }</style>')

} else



if(x>=8 && x<12) {





  document.write('<style type="text/css">body{background: white url(http://www.wallpaperdj.com/wallpapers/liquid_music-1280x800.jpg  08:00-12:00 ); color: blackbackground-position: center; background-repeat: no-repeat; background-attachment: fixed; }</style>')

} else



if (x>=12 && x<18) {



document.write('<style type="text/css">body{background: white url(http://www.desktopland.com/download/Wallpapers/!%20Pack12.%20DJ%20Wallpapers/DJ%20wallpaper%201440x900_2.jpg 12:00 - 18:00 ); color: blackbackground-position: center; background-repeat: no-repeat; background-attachment: fixed; }</style>')







} else

if (x>=18 && x<22) {






 document.write('<style type="text/css">body{background: white url(http://www.desktopland.com/download/Wallpapers/!%20Pack12.%20DJ%20Wallpapers/DJ%20wallpaper%201024x768_05.jpg  18:00-22:00 ); color: blackbackground-position: center; background-repeat: no-repeat; background-attachment: fixed; }</style>')







} else

if (x>=22 && x<24) {






 document.write('<style type="text/css">body{background: white url(http://www.get-free-wallpapers.com/wallpaper/preview/p7783-1287229657/music-dj-girl.jpg 22:00-24:00 ); color: blackbackground-position: center; background-repeat: no-repeat; background-attachment: fixed; }</style>')

}
</script>

Yes... I understand that you want to customize your forum but the you do need to explain what you want to do with the code.
Do you need to place it somewhere?

Yes ... this code is to automatically change the background throughout the 24

I know but what does he wants to do with it?
A certain page? The whole forum?

All forum. In all the pages of the forum ... Smile

Place the code in your overal_header template

not work .. I make the background white :/