1. What is kimsoft-jscalendar?
A concise avaScript calendar control that can be used in Java Web projects and. NET Web projects.
Ii. What are the features of kimsoft-jscalendar?
1. Small, single file
2. Supports multiple languages and can be expanded freely. (currently, it supports Simplified Chinese, traditional Chinese, English, United States, and English)
3. compatible with ie6.0 +, firefox1.0 +, Opera9, not tested by other browsers
4. echo the selected time, which is not available in many other calendar controls
5. Apache license 2.0 is commercially friendly. Free to use, free to modify and disseminate, but please keep the copyright information
6. Use iframe to solve the problem that the select control is displayed in the IE middle layer.
7. Other features include special discoveries...
Iii. Instructions for use
3.1. Import js files to pages (such as html, jsp, asp, aspx, and php.
<script type="text/javascript" src="http://3aj.cn/file/js/calendar.js"></script>
Note the following:
1. The calendar. js file content is written as a UTF-8, please be sure to set the encoding of this file as a UTF-8
2. The above code content, Especially in XHTML-compliant documents
3. After the file is included, a calendar Object calendar has been automatically instantiated on this page. Now you can use it.
3.2. The simplest example
Use a predefined calendar Object to generate the calendar code: <input name = "date" type = "text" id = "date" onclick = "calendar ar. show (this); "size =" 10 "maxlength =" 10 "readonly =" readonly "/>
Of course, you can also do this:
New A new Calendar Object and generate the Calendar code: <input name = "date" type = "text" id = "date" onclick = "new Calendar (). show (this); "size =" 10 "maxlength =" 10 "readonly =" readonly "/>
This article is excerpted from the recommended JavaScript calendar control kimsoft-jscalendar.