Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: how !?isplay only days of current month?
guarez
Junior Member

Posts: 2
Registered: 1/25/2003
Member Is Offline
posted on 1/25/2003 at 04:39 AM Reply With Quote
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?
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 1/27/2003 at 02:49 PM Reply With Quote
re: How display only days of current month?


You should make font color for non-current month days the same as their background color.
View User's Profile View All Posts By User U2U Member
guarez
Junior Member

Posts: 2
Registered: 1/25/2003
Member Is Offline
posted on 1/28/2003 at 12:05 AM Reply With Quote
how?


how? i can do that? =)
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 1/28/2003 at 09:16 AM Reply With Quote
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.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004