>
> switch (date('m-d')){
> case "12-25": //Christmas
> $image = "<img src='christmas.gif' />";
> break;
> case "01-01": //New years
> $image = "<img src='newyears.gif' />";
> break;
> ...
> default:
> $image = "<img src='default.gif' />";
> break;
> }
>
> And so on. Then, just <?php echo $image; ?> wherever
> the logo goes into the page.
>
> HTH,
> -Nick
>
>
i have the script working nicely. woudl it be possible to set it so that
it shows a certain image for a series of days. i know i could just add
another case for each day that i want, but if i have 12 images, how
would i get it to show one image for one month without 31 cases for each
month?
Mark...
http://www.soddengecko.com
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/