How to convert the lunar calendar through JavaScript

Source: Internet
Author: User

Believe someone will select the date in the page, you need to know the date of the lunar calendar! If it is Java, in the background can be converted in a flash, but on the page, through JavaScript to convert, I do not know that there are no good ideas? Just, some time ago, a friend asked such a question, and then wrote a demo to her, but also OK! I hope I can help you in need, OK, directly on the code, do not want to chatter:

<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%> <% String Path = Request.getcontextpath  
();  
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/"; %> <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >  

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/script/

The code has been posted, the key here is a js:calendar-converter.js, mainly for the Gregorian calendar to convert the lunar calendar! Attach this resource download address: http://download.csdn.net/download/luo201227/7616913

Finally, put a couple of effects on the picture:

1:

2:

3:

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.