On Oct 24, 2007, at 9:01 PM, tedd wrote:
At 3:10 PM -0700 10/24/07, Instruct ICC wrote:
> I want to be able to display something like an image of a turkey
during the month of november from now until I'm dead.
And how will the application know when you are dead?
When you stop paying for hosting, the application get's the idea
when it's bits go poof!
If anyone ever noticed, my web site (http://sperling.com) has a
tree on it that changes with the seasons. I use:
$dates = getdate();
$month = $dates['mon'];
$w = "http://www.sperling.com/css/seasons/";
switch( $month )
{
case "03": case "04": case "05":
$var = $w . "spring.jpg";
break;
case "06": case "07": case "08" :
$var = $w . "summer.jpg";
break;
case "09": case "10": case "11":
$var = $w . "fall.jpg";
break;
case "12": case "01": case "02":
$var = $w . "winter.jpg";
$break;
}
echo($var);
And this code is called from within my css file for a background
image. Yes, I use variables in css.
Cheers,
tedd
Hi tedd,
That's actually where I got the idea, just couldn't remember who on
what list said they did it :) using variables in css is it as easy as
just putting in a quick <?PHP echo "background: $date"; ?> in the
css? or is it more complicated?
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
japruim@xxxxxxxxxx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php