Change a website image based on a month or season

Recently I posted a very simple php code on the downloads page that changes a website image based on the month or season. A very simple piece of php code, but thought either novices or people not interested in tinkering with php would find it helpful.

The code finds out the month from the web server and then shows an image associated with that month. Instead of the usual static img src in your html code, the php makes the decision.

So how could this be used? Ideal if you want to have a website template header image to reflect a month or season. A business could use it to change an image on a front page promoting a different category each month and so on.

You can find it over on the downloads page.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments