CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to change colors, fonts and other options?

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q.
View previous topic :: View next topic  
Author Message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Tue Feb 15, 2005 4:30 pm    Post subject: How to change colors, fonts and other options? Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q. All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group