Js calendar control source code download, js calendar source code download
Original article: js calendar control source code download
Source code: http://www.zuidaima.com/share/1550463462640640.htm
The calendar control written in js is as follows:
Source code of the JAVA calendar Control
The my97 calendar control is easy to use. You can go online,
Is a js time calendar control?
This is a js calendar I found. I don't know if it is what you want. It contains time. In fact, it is quite easy to add time to the calendar, you only need to call the DATE method and hope it will be useful to you. The following is a code segment, attached.
<Html>
<Head>
<Script language = "JavaScript" TYPE = "text/javascript">
// Define the Calendar function
Function calendar (){
Var today = new Date (); // create Date object
Year = today. getYear (); // read year
ThisDay = today. getDate (); // read the current day
// Create the number of days per month Array
Var monthDays = new Array (31, 28, 31, 30, 31, 30, 31, 31, 30, 31 );
// For a leap year, the number of days in February is 29 days.
If (year % 4 = 0) & (year % 100! = 0) | (year % 400 = 0) monthDays [1] = 29;
DaysOfCurrentMonth = monthDays [today. getMonth ()]; // read the number of days of the month from the number of days of the month Array
FirstDay = today; // copy the date object
FirstDay. setDate (1); // set the date object firstDay to 1
StartDay = firstDay. getDay (); // determine the day of the week on the first day of the month.
// Define the Chinese name array for Sunday and month
Var dayNames = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday ");
Var monthNames = new Array ", "August September", "August October", "August November", "August December ");
// Create date object
Var newDate = new Date ();
// Create a table
Document. write ("<table border = '0' CELLSPACING = '0' CELLPADDING = '2' ALIGN = 'center' BGCOLOR = '# 0080FF'> ")
Document. write ("<TR> <TD> <table border = '0' cellspacing = '1' cellpadding = '2' bgcolor = '#...... remaining full text>