RE: Question about time...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux