Categories

Updated: 04/13/2008

Time of Day Based Backgrounds

Just like the time changing backgrounds that appear when using themes on iGoogle this simple function dynamically inserts css into the head of any web page to change the background and/or background image of an html tag, class or id based on the time of the day. One function call gets the job done with configuration variables to control server time offset (so the time is set to your local time) and the name of the tag, class or id you wish to add the background to.There are currently 6 times phases supported: midnight, dawn, morning, afternoon, dusk and evening. The zip file contains a working demo with images.
©2019 A--9.com