It might help to know what's in java/cdate.js, but even without that I think I can give you an idea:
Code:
;(function(){
var monthyear = document.getElementsByTagName('h1')[0].childNodes, mname = monthyear[0].nodeValue, yr = monthyear[2].nodeValue,
mos = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
d = new Date(), days, thedate, dl;
if(mos[d.getMonth()] === mname && d.getFullYear() === +yr){
days = document.getElementsByTagName('li'); thedate = d.getDate(); dl = days.length;
while(--dl > -1){
if(thedate === +days[dl].firstChild.nodeValue){
days[dl].style.color = 'hotpink';
break;
}
}
}
})();
Demo:
http://jscheuer1.com/demos/tidbits/c...template1.html
NOTES: The script can be external or it's code added at the end of your existing script. It may even be able to be integrated with the existing script (I'd have to see said script to know that). Also, this code I'm supplying depends upon your markup following the template more or less exactly with just minor variations as required for each different month. If that's not workable for you, I can offer a number of suggestions that would make it easier and more flexible. However, as long as you truly follow what you've set out here as a template, then it will always work. Further, different effects are possible. Background in addition to, or instead of color can be changed for the active date, or a class name or id could be added to the active date element instead of directly writing to the date's element's style, then whatever attributes are desired for the active date could be set in the stylesheet. Oh, and you have a somewhat serious problem. If the window is narrower than your HTML/css expects, things get out of alignment.
Bookmarks