background
|
|
RiscOS
Risc OS Info
All you need to know about Risc OS and more.
More icon

Computer
|
|
Up Image
Navigation
Search this Site
Enter your search terms

Site Breadcrumb - You are here
|
Reference   JavaScript Code Library

Web surfers are tough on sites. Even covering a slow moving subject area (eg grass growing, paint drying) the pressure is on to update daily. This routine will change your background color each day of the week, creating the illusion of rampant activity and making the site look fresh each day. Call it with a list of the colors you want for each day, starting with Monday. Supply colors as rgb values (eg "#ffffff") or as color names (eg "white").

Usage: SM_dailyBgColor ("sundaycolor", "mondaycolor", "tuesdaycolor", "wednesdaycolor", "thursdaycolor", "fridaycolor", "saturdaycolor");

License: This code is released under the GNU Library General Public License.

Cut, paste, and enjoy!