Give Your Site Some Season

By | 2016-11-18T14:24:57+00:00 December 27th, 2010|Categories: Cascade CMS|Tags: , , |

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


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.




About the Author:

Beacon Buddy