10-14-2009, 03:51 AM
(10-14-2009, 03:25 AM)immi Wrote: Yours welcome ;)
And I had an idea based on this script..... Changes the color based on the four seasons
PHP Code:
function fourSeasons() {
$month = date("m");
$color = "#ff0000";
if($month >= 3 && $month <= 5) {
$color = "#59bd0f";
}elseif($month >= 6 && $month <= 8) {
$color = "#fece60";
}elseif($month >= 9 && $month <= 11) {
$color = "#7e5f29";
}elseif($month == 12 || $month <= 2) {
$color = "#8ed7e8";
}
return $color;
}
print '<body bgcolor="'.fourSeasons().'">';