Forum Moderators: open
Locate the following code in the external file you have created called calender.js and you can either inline style or call on a style class for the surrounding td elements. I have included an inline style of font-size 8 in the below example.
var TR_start = '<TR>';
var TR_end = '</TR>';
var highlight_start = '<TD WIDTH="30"><TABLE CELLSPACING=0 BORDER=1 BGCOLOR=DEDEFF BORDERCOLOR=CCCCCC><TR><TD WIDTH=20 style="font-size:8pt"><B><CENTER>';
var highlight_end = '</CENTER></TD></TR></TABLE></B>';
var TD_start = '<TD WIDTH="30" style="font-size:8pt"><CENTER>';
var TD_end = '</CENTER></TD>';
HTH,
-George
/* BEGIN CODE FOR CALENDAR
NOTE: You can format the 'BORDER', 'BGCOLOR', 'CELLPADDING', 'BORDERCOLOR'
tags to customize your calendar's look.*/
cal = '<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 BORDERCOLOR=BBBBBB><TR><TD>';
cal += '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2>' + TR_start;
cal += '<TD COLSPAN="' + DAYS_OF_WEEK + '" BGCOLOR="#9BCFEC"><TD WIDTH="30" style="font-size:8pt"><CENTER><B>';
cal += month_of_year[month] + ' ' + year + ' </B>' + TD_end + TR_end;
cal += TR_start;
but I have no idea where to put the style bit in?
any ideas?
Cheers
cal = '<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 BORDERCOLOR=BBBBBB><TR><TD>';
cal += '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2>' + TR_start;
cal += '<TD COLSPAN="' + DAYS_OF_WEEK + '" BGCOLOR="#9BCFEC"><CENTER><B>';
cal += month_of_year[month] + ' ' + year + ' </B>' + TD_end + TR_end;
cal += TR_start;