Based on this same exact script, is it possible to change an image instead of a color? Just curious...I am going to look it up, but a quick response would be nice.
After a little more work, that is now accomplished here is the code for anyone if they find it of interest:
PHP Code:
<?php
/////////////////////////////////////////////// Background Color Changer Code //////////////////////////////////////////////
$holiday_image = "<img src=\"images/newyear.png\">"; // replace image to what you want displayed
switch(date("md")) {
case 0101:
// replace image to what you want displayed on 01/01 of every year
$holiday_image = "<img src=\"images/newyear.png\">";
break;
case 0202:
// replace image to what you want displayed on 02/02 of every year
$holiday_image = "<img src=\"images/newyear.png\">";
break;
case 0214:
// replace image to what you want displayed on 02/14 of every year
$holiday_image = "<img src=\"images/newyear.png\">";
break;
case 0422:
// replace image to what you want displayed on 04/22 of every year
$holiday_image = "<img src=\"images/newyear.png\">";
break;
case 0704:
// replace image to what you want displayed on 07/04 of every year
$holiday_image = "<img src=\"images/newyear.png\">";
break;
case 1111:
// replace image to what you want displayed on 11/11 of every year
$holiday_image = "<img src=\"images/newyear.png\">";
break;
case 1031:
// replace image to what you want displayed on 10/31 of every year
$holiday_image = "<img src=\"images/newyear.png\">";
break;
case 1225:
// replace image to what you want displayed on 12/25 of every year
$holiday_image = "<img src=\"images/newyear.png\">";
break;
}
/////////////////////////////////////////////// Background Color Changer Code //////////////////////////////////////////////
?>
<?php echo($holiday_image);?>
Thanks!
__________________
Made2Own
Last edited by Brian07002; 12-21-2009 at 03:52 PM..
|