Sunday, 27 November 2011

Change background color based on day of the week using array

<html>
<head>
<title>Background Colors change based on the day of the week</title>
</head>
<?
$today 
date("w");$bgcolor = array("#FEF0C5""#FFFFFF""#FBFFC4""#FFE0DD","#E6EDFF""#E9FFE6""#F0F4F1");?><body bgcolor="<?print("$bgcolor[$today]");?>">
<br>This just changes the color of the screen based on the day of the week
</body>
</html>

No comments:

Post a Comment