Re: Question about time...
| From: | Jason Pruim | Date: | Thu, 25 Oct 2007 13:01:55 +0000 |
| Subject: | Re: Question about time... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263652@lists.php.net to get a copy of this message | ||
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 turkeyHi 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@raoset.comWhen 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, teddduring the month of november from now until I'm dead.And how will the application know when you are dead?