View Full Version : Can someone help add the current date to this script.

01-15-2012, 05:32 AM
I found this nice calendar script that is great except I wanted to get one thing added to it.


I want the current date to be highlighted in a different color-light blue maybe?

these are the files to the calendar:

And here is what I have :

I have no idea where or how to go about doing this.

01-15-2012, 11:33 AM
Here, in the epoch_styles.css file around line #70, add the highlighted as shown:

table.calcells td.curdate {
color: blue;

Or, for a more dramatic effect, perhaps:

table.calcells td.curdate {
color: white;
background-color: blue;

Once you see the effect, you may want to change the color(s) used for it, and perhaps those used for some of the others.

01-15-2012, 06:10 PM
Once again,thank you John.

btw-how do you find the line numbers so easily.What editor do you use?

01-15-2012, 06:39 PM
My editor - Mostly EditPad Pro (commercial, but cheap). I also sometimes use NotePad++ (free). Both list or can optionally list the line numbers in the left hand margin. There are a number of other editors both free and commercial that do this. I sometimes get line numbers from developer tools in Firefox or IE 9, both of which have views that show them. Other browsers' tools probably have the same or similar, but as my experience with them is more limited than with IE and Firefox, I have yet to run across a situation where I've grabbed a line number from one of them. I have used them for other stuff though and they generally work very well for what I have done with them.