Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > Javascipt calendar > Feedback
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2008, 05:07 PM
andreo andreo is offline
Junior Member
 
Join Date: Jan 2008
Posts: 2
Cool UPGRADE?move forward and backwards in YEARS?

Great Script,
Would it be possible to update the script to move forward and backward in years, as well as (the current) months.
When needing to select a year in the past ie. 2000, it entails a large amount of clicking to display the date. It'll be very nice to jump to 2000 in 5-6 clicks.
Reply With Quote
  #2  
Old 01-13-2008, 06:00 PM
andreo andreo is offline
Junior Member
 
Join Date: Jan 2008
Posts: 2
Smile Sorted

THNX i tinkerd round a bit and got it sorted. Added
function csuby() {
marr=((ccy%4)==0)?mnl:mnn;

ccy-=1;
if (ccy<0) {
ccm=11;
ccy--;
}
cdayf();
prepcalendar('',ccm,ccy);

and

function caddy() {
marr=((ccy%4)==0)?mnl:mnn;

ccy+=1;
if (ccm>=12) {
ccm=0;
ccy++;
}
cdayf();
prepcalendar('',ccm,ccy);
}
plus
<td style="cursorointer" onclick="csuby()"><img src="/images/arrowleftmonth.gif">
and
<td style="cursorointer" onclick="caddy()"><img src="/images/arrowleftmonth.gif">
and finally decreased the colspan from 5 to 3.

Voilla moving forward and backward in years.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:42 PM.