Js calendar control source code download, js calendar source code download

Source: Internet
Author: User
Tags add time

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>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.