Originally posted by l008com:
Can you come up with something more specific?
woo hoo... one more to 100
[php]
<?
// holiday [ start, end ]
$xmas = array(15, 31);
$valentines = 14;
// current [ month, day ]
$today = array(date(n), date(j));
switch ("$today[0]") {
case 2:
if ("today[1]" == "$valentines")
{
$pic = "images/valentines.jpg";
} else {
$pic = "images/not-a-holiday.jpg";
}
break;
case 12:
if ("$today[1]" > "$xmas[0]" && "$today[1]" < "$xmas[1]")
{
$pic = "images/xmas.jpg";
} else {
$pic = "images/not-a-holiday.jpg";
}
break;
default:
$pic = "images/not-a-holiday.jpg";
break;
}
?>
<html>
<head></head>
<body>
<img src="<? echo "$pic"; ?>">
</body>
</html>[/php]