Thread: day and night
View Single Post
Old Aug 3rd, 2005, 5:35 AM   #9
coldblue
Newbie
 
Join Date: May 2005
Posts: 20
Rep Power: 0 coldblue is on a distinguished road
Hey people i've got a code now that works very well it uses your computer clock for timeing

Code:
<script language="JavaScript">
<!--
var now = new Date( );
var hour = now.getHours( );
if (hour >= 4 && hour <= 18) {
document.bgColor = "#6699cc";
}
else {
document.bgColor = "#000066";
}
//-->
</script>
coldblue is offline   Reply With Quote