Version compl�te: jsB@nk » Heure » Calendrier » 3-mois calendrier script
URL: https://www.javascriptbank.com/3-month-calendar-script.html
Parfois, il est pratique d'avoir montré le calendrier de plusieurs mois. Dans cet esprit, Ada script affiche le dernier, le présent et le mois prochain calendrier. Customizable couleur de fond et la taille de la police.
Version compl�te: jsB@nk » Heure » Calendrier » 3-mois calendrier script
URL: https://www.javascriptbank.com/3-month-calendar-script.html
<SCRIPT LANGUAGE="JavaScript"><!-- Begin/*3-month calendar script- Ada Shimar ([email protected])*/var flg=0;var fs=1;var bg="cyan";M=new Array("January","February","March","April","May","June","July","August","September","October","November","December");D=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");function getBgn(){pdy=new Date(); // todaypmo=pdy.getMonth(); // present monthpyr=pdy.getYear(); // present yearif (pyr<100) pyr="19" + pyr;else pyr+=0;yr1=(pmo==0?pyr-1:pyr); // last month's yearmo=(pmo==0?11:pmo-1); // last monthbgn=new Date(M[mo]+" 1,"+yr1); // assign to datedocument.write('<TABLE BORDER=0><TR><TD VALIGN=TOP>');Calendar(); // Send last month to screendocument.write('</TD><TD VALIGN=TOP>');yr=pyr; // present yearmo=pmo; // present monthbgn=new Date(M[mo]+" 1,"+yr1); // assign to dateCalendar(); // Send this month to screendocument.write('</TD><TD VALIGN=TOP>');yr=(pmo==11?pyr+1:pyr); // next month's yearmo=(pmo==11?0:pmo+1); // next monthbgn=new Date(M[mo]+" 1,"+yr1); // assign to dateCalendar(); // Send next month to screendocument.write('</TD></TR></TABLE>'); // Finish up}function Calendar(){dy=bgn.getDay();yr=eval(yr1);d="312831303130313130313031";if (yr/4==Math.floor(yr/4)){ d=d.substring(0,2)+"29" +d.substring(4,d.length); }pos=(mo*2);ld=eval(d.substring(pos,pos+2));document.write("<TABLE BORDER=1"+" BGCOLOR='"+bg+"'><TR><TD ALIGN=CENTER COLSPAN=7>"+"<FONT SIZE="+fs+">"+M[mo]+" "+yr+"</FONT></TD></TR><TR><TR>");for (var i=0;i<7;i++){document.write("<TD ALIGN=CENTER>"+"<FONT SIZE=1>"+D[i]+"</FONT></TD>"); }document.write("</TR><TR>");ctr=0;for (var i=0;i<7;i++){if (i<dy){document.write("<TD ALIGN=CENTER>"+"<FONT SIZE="+fs+"> </FONT>"+"</TD>");}else{ctr++;document.write("<TD ALIGN=CENTER>"+"<FONT SIZE="+fs+">"+ctr+"</FONT>"+"</TD>"); }}document.write("</TR><TR>");while (ctr<ld){for (var i=0;i<7;i++){ctr++;if (ctr>ld){document.write("<TD ALIGN=CENTER>"+" </TD>");}else{document.write("<TD ALIGN=CENTER>"+"<FONT SIZE="+fs+">"+ctr+"</FONT>"+"</TD>"); }}document.write("</TR><TR>");}document.write("</TR></TABLE>");}// End --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<SCRIPT LANGUAGE="JavaScript"><!-- BegingetBgn();// End --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->