Pure ASP code Gregorian calendar to the lunar calendar implementation (including the zodiac)--Example code

Source: Internet
Author: User
Lunar

<!--#includeFile = "clsday.asp"-->
<%
Dimobjchinaday
Dimsday,sweekday,schinaday,schinayear,schinaani
Setobjchinaday=new Chinaday
Callobjchinaday.action ("", Sday,sweekday,schinayear,schinaday,schinaani)
Setobjchinaday=nothing
' response.writesday& ' <BR> '
' response.writesweekday& ' <BR> '
' response.writeschinayear& ' <BR> '
' response.writeschinaday& ' <BR> '
' response.writeschinaani& ' <BR> '
%>
<metahttp-equiv= "Content-type" content= "text/html;charset=gb2312" >
<title> Lunar Calendar </title>
<style>
. itm{font-family: Song body; font-size:14px;}
. chn{font-family: Song body; font-size:12px}
. chnred{font-family: Song body; color: #FF0000; font-size:12px}
. chnblue{font-family: Song body; color: #0000FF; font-size:12px}
</style>

<bodybgcolor= "#FFFFFF
<!--display the site calendar:
<tableborder=" 1 "cellspacing=" 1 "width=" 110 " Bgcolor= "#EAEAEA" bordercolor= "#FFFFFF"
bordercolorlight= "#000000"
 <tr><td>< Center><table>
 <tr>
   <tdclass= "Chnblue" align= "Center" valign= " Middle "><%=sday%>
</td>
 </tr>
 <tr>
   < tdclass= "chnred" align= "center" valign= "Middle" ><%=sweekday%>
</td>
 </tr>
 <tr>
   <tdclass= "chnblue" align= "center" valign= "Middle" ><%=schinayear & "(" &sChinaAni& ")"%>
</td>
 </tr>
 <tr>
    <tdclass= "chnred" align= "center" valign= "Middle" ><%=schinaday%>
</td>
 </ Tr>
 </td>
 </tr>
 </table>
</table>
</body>



Related Article

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.