guarez
Junior Member
Posts: 2
Registered: 1/25/2003
Member Is Offline
|
| posted on 1/25/2003 at 04:39 AM |
|
|
how !?isplay only days of current month?
how i can display only the days of the current month???
because when i choose a month the calendar show me the last days of the past month and the first days of the new month..
any idea?
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 1/27/2003 at 02:49 PM |
|
|
re: How display only days of current month?
You should make font color for non-current month days the same as their background color.
|
|
|
guarez
Junior Member
Posts: 2
Registered: 1/25/2003
Member Is Offline
|
| posted on 1/28/2003 at 12:05 AM |
|
|
how?
how? i can do that? =)
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 1/28/2003 at 09:16 AM |
|
|
re: How display only days of current month?
You should find the following fragment in calendar.html file:
document.write('<a href="javascript:set_datetime('+dt_current_day.valueOf() +', true);">');
if (dt_current_day.getMonth() == this.dt_current.getMonth())
// print days of current month
document.write('<font color="#000000">');
else
// print days of other months
document.write('<font color="#606060">');
document.write(dt_current_day.getDate()+'</font></a></td>');
and replace it by the following fragment:
if (dt_current_day.getMonth() == this.dt_current.getMonth())
// print days of current month
document.write(''<a href="javascript:set_datetime('+dt_current_day.valueOf() +', true);"><font
color="#000000">' + dt_current_day.getDate() + '</font></a>');
else
// print days of other months
document.write(' ');
document.write('</td>');
By the way, in Tigra Calendar PRO( http://www.softcomplex.com/products/tigra_calendar_pro/) you can do it more easily.
|
|
|