Give Your Site Some Season

Est. Read Time: ~Less Than a Minute

Many websites like to modify their logos or layout to suit the holidays or an event. Google’s homepage often features a modification to their logo relevant to the date. This can easily be done without the need to manage your images and stylesheets using PHP/ASP or Javascript. A script such as this determines to ouput between:

Standard Holiday

-And-

Holiday Standard

This is an attractive feature for e-commerce websites to highlight holiday products and content to visitors. Here are three working flavors of code to display a pre-made set of holiday images, which only requires to keep the images named respectively and that the directory structure correlate with the code. These can be changed by editing the “file” and “location” variables used below and adding additional else if statements.

PHP

ASP

Javascript

Load More Posts