Seasonal Background

Display a different background behind your content depending on which season it is. The seasonal background script allows you to set up separate summer, autumn, winter, and spring images and use the appropriate one as the bacground behind part of your page content. You can even choose between northern and southern hemisphere seasons by setting the north variable to either true or false.

This script can be added unobtrusively to any web page simply by including the appropriate script tag and link tag in the head of your page in order to link the JavaScript and stylesheet to your page. The only other change needed is to add id="seasonal" to the tag in your HTML that you want to have display the seasonal background.

Download a complete copy of the seasonal background script including sample HTML that shows you how to attach this unobtrusive JavaScript into your page.


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow