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: