calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Tue Feb 15, 2005 4:30 pm Post subject: How to change colors, fonts and other options? |
|
|
There are 2 files involved in a theme that control the look of the calendar - theme-name.js & theme-name.css. They are all self-documented and you may use any text editor to fulfill the change.
The following example changes the background color of all the calendar cells to red (except Sundays) and the whole calendar to blue:
Code: | var gcCalBG="blue"; // calendar bg color
var gcCellBG="red"; // default cell bg color
var gcSatBG=null; // Saturday bg color, use default if set to null
var gcSunBG="#00ff00"; // Sunday bg color |
We use both js and css file to achieve maximum cross-browser compatibility, this may be a bit uncomfortable at the first if you were used to playing only around css files. But it pays when your customers see it running perfectly across various browsers including the outdated NN4.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|