CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Date TIme Picker

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related
View previous topic :: View next topic  
Author Message
njpmr



Joined: 28 Feb 2010
Posts: 24

PostPosted: Tue Mar 02, 2010 3:00 am    Post subject: Date TIme Picker Reply with quote

How can I add a link like "Today: Mar 1, 2010" to display below the timepicker?
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Tue Mar 02, 2010 4:08 am    Post subject: Reply with quote

Check the plugins.js of the timepicker theme and find a line that assigns the option gsBottom, then append it with the following HTML:
Code:
<br><A class='BottomAnchor' href='javascript:void(0)' onclick='if(this.blur)this.blur();if(!fSetDate(gToday[0],gToday[1],gToday[2]))alert(\"You cannot select today!\");return false;' onmouseover='return true;' >Today</A>

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
njpmr



Joined: 28 Feb 2010
Posts: 24

PostPosted: Tue Mar 02, 2010 11:31 am    Post subject: Reply with quote

Thanks for the quick response. Just a couple things...I would like to display the actual date next to it as in some of your samples.
And also , How can I format it...font,color,remove link underline, etc.
Thanks again.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Tue Mar 02, 2010 10:39 pm    Post subject: Reply with quote

Just modify the CSS class "BottomAnchor" in the css file of the theme. e.g. add "text-decoration:underline" if you need underline.
_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group