JavaScript calendar with lunar solar-term controls

Source: Internet
Author: User
Tags eval visibility microsoft frontpage
Tip: You can modify some of the code before running



<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml "> <head> <meta http-equiv=" Content-type "content=" text/html;charset=gb2312 "/> <title>javascript with lunar throttle calendar </title> </head> <body> < SCRIPT language=javascript> <!--/************************************************************************* Date Data *****************************************************************************/var lunarInfo=new Array (0x 04BD8,0X04AE0,0X0A570,0X054D5,0X0D260,0X0D950,0X16554,0X056A0,0X09AD0,0X055D2, 0x04ae0,0x0a5b6,0x0a4d0,0x0d250, 0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977, 0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60, 0x09570,0x052f2,0x04970, 0x06566,0x0d4a0,0x0ea50,0x06e95,0x05ad0,0x02b60,0x186e3,0x092e0,0x1c8d7,0x0c950, 0x0d4a0,0x1d8a6,0x0b550,0x056a0,0x1a5b4,0x025d0,0x092d0,0x0d2b2,0x0a950,0x0b557, 0x06CA0,0X0B550,0X15355,0X04DA0,0X0A5D0,0X14573,0X052D0,0X0A9A8,0X0E950,0X06AA0, 0x0aea6,0x0ab50,0x04b60,0x0aae4, 0X0A570,0X05260,0X0F263,0X0D950,0X05B57,0X056A0, 0x096d0,0x04dd5,0x04ad0,0x0a4d0,0x0d4d4,0x0d250,0x0d558, 0X0B540,0X0B5A0,0X195A6, 0x095b0,0x049b0,0x0a974,0x0a4b0,0x0b27a,0x06a50,0x06d40,0x0af46,0x0ab60,0x09570, 0X04AF5,0X04970,0X064B0,0X074A3,0X0EA50,0X06B58,0X055C0,0X0AB60,0X096D5,0X092E0, 0x0c960,0x0d954,0x0d4a0, 0X0DA50,0X07552,0X056A0,0X0ABB7,0X025D0,0X092D0,0X0CAB5, 0X0A950,0X0B4A0,0X0BAA4,0X0AD50,0X055D9,0X04BA0, 0x0a5b0,0x15176,0x052b0,0x0a930, 0x07954,0x06aa0,0x0ad50,0x05b52,0x04b60,0x0a6e6,0x0a4e0,0x0d260,0x0ea65, 0x0d530, 0X05AA0,0X076A3,0X096D0,0X04BD7,0X04AD0,0X0A4D0,0X1D0B6,0X0D250,0X0D520,0X0DD45, 0x0b5a0,0x056d0, 0X055B2,0X049B0,0X0A577,0X0A4B0,0X0AA50,0X1B255,0X06D20,0X0ADA0) var solarmonth=new Array ( 31,28,31,30,31,30,31,31,30,31,30,31); var gan=new Array ("A", "B", "C", "Ding", "E", "Self", "Geng", "Xin", "Ren", "GUI"); var zhi=new Array ("Zi", "ugly", "Yin", "Mao", "Chen", "Si", "Afternoon", "not", "Shen", "unitary"," Xu "," Hai "); var animals=new Array ("Rat", "ox", "Tiger", "Rabbit", "dragon", "Snake", "horse", "sheep", "monkey", "Chicken", "dog", "pig"); var solarterm = new Array ("Xiaohan", "Dahan", "Spring", "rainwater," insects "," vernal Equinox "," Qingming "," Rain "," Summer "," Xiaoman "," grain "," Summer solstice "," slight heat "," Great Heat "," beginning of Autumn "," Chushu "," Lu "," Autumnal Equinox " "," Dew "," Frost "," Winter "," Snow "," Snow "," Winter Solstice ") var sterminfo = new Array ( 0,21208,42467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,3974 47,419210,440795,462224,483532,504758) var nStr1 = new Array (' Day ', ' one ', ' two ', ' three ', ' four ', ' five ', ' six ', ' seven ', ' eight ', ' nine ', ' ten ') var nStr2 = n EW Array (' early ', ' ten ', ' 20 ', ' 30 ', ' ') var monthname = new Array ("The", "FEB", "MAR", "APR", "may", "June", "may", "AUG", "SEP", "OCT", " NOV "," DEC "); National Calendar Festival * means the holiday day var sftv = new Array ("0101* New Year's Day", "0214 Valentine's Day", "0303 My Birthday", "0308 Women's Day", "0312 Arbor Tree", "0315 Consumer equity Days", "031 7 St. Patrick's, "0401 April Fool's", "0501 Labor Day", "0504 Youth Festival", "0512 nurse section", "0512-Birthday", "0601 Children", "0614 Flag", "0701 built Party Festival Hong Kong Reunification Memorial, "0703 Yan Yan online Birthday", "0718 top Birthday", "0801 army", "0808 Father's Day", "0909 Mao Zedong's death Memorial", "0910 Teachers Day", "0928 Confucius Birthday", "1001*Festival, "1006 old people's Day", "1024 United Nations Day", "1111 Veteran ' S/remembrance", "1112 Sun Yat-sen's birthday Memorial", "1220 Macau Reunification Memorial", "1225 Christmas Days" , "1226 Mao Zedong's Birthday Memorial")///Lunar calendar * means vacation day var lftv = new Array ("0101* Spring Festival", "0115 Lantern Festival", "0505 Dragon Boat Festival", "7,077 Eve Valentine's Day", "0715 Zhongyuanjie" , "0815 Mid-Autumn Festival", "0909 Double Ninth Festival", "1208 Laba Festival", "1224", "0100* New Year's Eve")//The first few weeks of a month a few var WFTV = the "0131 Martin Luther King Day "," 0231 President ', "" 0520 Mother "," 0530 Armed Forces Day "," 0531 Victoria "," 0716 Cooperative Festival "," 0730 enslaved countries Home Week "," 0811 Civic Holiday "," 0911 Labor Holiday "," 1021 Columbus Day "," 1144 Thanksgiving ")/*********************** Date Calculation ***************************************************** ///====================================== Returns the total number of days of the lunar y year function lyeardays (y) {var I, sum = 34 8 for (i=0x8000; i>0x8; i>>=1) sum + = (lunarinfo[y-1900] & I)? 1:0 return (Sum+leapdays (y))}//======================================Days back to the Lunar New Year leap month function leapdays (y) {if (Leapmonth (y)) return ((lunarinfo[y-1900] & 0x10000)? 30:29) Else returns (0)} ====================================== return to the lunar calendar y year 1-12, no leap back to 0 function leapmonth (y) {return (lunarinfo[y-1900] & Amp 0XF)}//====================================== returns the total number of days of the lunar Y-year m-month function monthdays (y,m) {return (lunarinfo[y-1900) &A mp (0x10000>>m))? 30:29)}//====================================== calculates the lunar calendar, passes in the Date object, returns the Lunar Date object//The object property has. Year month. Isleap. Yearcy L. daycyl. moncyl function Lunar (objdate) {var I, leap=0, temp=0 var basedate = new Date (1900,0,31) var offset = (ob jdate-basedate)/86400000 this.daycyl = offset + this.moncyl = for (i=1900; i<2050 && offset>0; i++) {temp = Lyeardays (I) offset = temp This.moncyl + +} if (offset<0) {offset = temp; i--; this.moncyl = This.year = I this.yearcyl = I-1864 leap = leapmonth (I)//leap which month This.isleap = False for (I=1; I <13&& offset>0; i++) {//Leap month if (leap>0 && i== (leap+1) && this.isleap==false) {I. THIS.ISLEAP = true; temp = LEAPDA Ys (This.year); else {temp = Monthdays (this.year, I);} Lift Leap Month if (this.isleap==true && i== (leap+1)) This.isleap = False offset = Temp if (This.isleap = False) this.m Oncyl + +} if (offset==0 && leap>0 && i==leap+1) if (this.isleap) {this.isleap = false;} else {this.isleap = true;--this.moncyl;} if (offset<0) {offset = temp;--this.moncyl; This.month = I This.day = offset + 1}//============================== the number of days of the m+1 month of the return calendar Y-year function solardays (y,m) {if ( M==1) return ((y%4 = 0) && (y%100!= 0) | | (y%400 = 0))? 29:28) Else return (Solarmonth[m])}//============================== incoming offset back ganzhi, 0 = function cyclical (num) { Return (gan[num%10]+zhi[num%12])}//============================== Month calendar property function Calelement (Syear,smonth,sday,week, Lyear,lmonth,lday, isleap,cyear,cmonth,cday) {this.istoday = false; National Calendar this.syear = Syear; This.smonth = Smonth; This.sday = Sday; This.week = week; Lunar this.lyear = lyear; This.lmonth = Lmonth; This.lday = Lday; This.isleap = Isleap; Ganzhi this.cyear = cyear; This.cmonth = Cmonth; This.cday = Cday; This.color = '; This.lunarfestival = '; This.solarfestival of the Lunar holidays = '; National Calendar Festival this.solarterms = '; Throttle}//===== The nth solar term for a certain year is a few days (starting from 0 Xiaohan) function sterm (y,n) {var offdate = new Date (31556925974.7* (y-1900) + Sterminf o[n]*60000) + DATE.UTC (1900,0,6,2,5)) return (Offdate.getutcdate ())}//============================== returns the Calendar object (Y year, m+1 Month) function calendar (y,m) {var sdobj, ldobj, LY, LM, ld=1, LL, lx=0, TMP1, tmp2 var ldpos = new Array (3) var n = 0 var firstlm = 0 Sdobj = new Date (y,m,1)//day of the Month This.length = Solardays (y,m)//Country calendar days of the Month This.firstweek = Sdobj.getday ( )/Calendar Month 1st week several for (Var i=0;i<this.length;i++) {if (LD>LX) {sdobj = new Date (y,m,i+1)//monthDay Date ldobj = new Lunar (sdobj)//Lunar Calendar LY = ldobj.year//Lunar New Year LM = ldobj.month//Lunar new Month LD = ldobj.day//Lunar Day LL = Ldobj.islea P//Lunar calendar is the leap month LX = LL? Leapdays (LY): Monthdays (LY,LM)//Last day of lunar month if (n==0) FIRSTLM = LM ldpos[n++] = i-ld+1}//syear,smonth,sday,week,//l Year,lmonth,lday,isleap,//cyear,cmonth,cday this[i] = new Calelement (y, m+1, i+1, nstr1[(I+this.firstweek)%7], LY, LM, ld++, LL, cyclical (ldobj.yearcyl), cyclical (ldobj.moncyl), cyclical (ldobj.daycyl++)) if ((I+this.firstweek)%7==0) thi S[i].color = ' red '//Sunday Color if ((I+this.firstweek)%14==13) This[i].color = ' red '//weekend 2nd Color}//Throttle Tmp1=sterm (y,m*2)-1 T Mp2=sterm (y,m*2+1)-1 this[tmp1].solarterms = solarterm[m*2] This[tmp2].solarterms = solarterm[m*2+1] if (m==3) this[tmp 1].color = ' Red '/Ching Ming Color//National Calendar Festival for (I in SFTV) if (Sftv[i].match (/^ (D{2}) (D{2}) ([s*]) (. +) $/)) if (number (regexp.$1) = = (m+ 1)) {This[number (regexp.$2) -1].solarfestival + = regexp.$4 + ' if (regexp.$3== ' * ') this[number (regexp.$2) -1].color = ' r Ed (I in WFTV) if (Wftv[i].match (/^ (D{2}) (d) (. +) s*)) if (number ($/) = (regexp.$1)) {m+1 (Re gexp.$2) Tmp2=number (regexp.$3) this[(THIS.FIRSTWEEK>TMP2) 7:0) + 7* (tmp1-1) + Tmp2-this.firstweek]. Solarfestival + = regexp.$5 + '}//Chinese festival for (I-LFTV) if (Lftv[i].match (/^ (D{2}) (. { 2}) ([s*]) (. +) $/)) {Tmp1=number (regexp.$1)-FIRSTLM if (tmp1==-11) tmp1=1 if (tmp1 >=0 && tmp1<n) {TMP2 = LDPOS[TMP1] + number (regexp.$2)-1 if (tmp2 >= 0 && tmp2<this.length) {this[tmp2].lunarfestival = RegExp . $ + ' if (regexp.$3== ' * ') This[tmp2].color = ' Red '}}//Black Friday if ((this.firstweek+12)%7==5) this[12].solarfes Tival + = ' black Friday '/Today if (Y==ty && m==tm) This[td-1].istoday = true; //====================== Chinese Date function Cday (d) {var S; Switch (d) {case 10:s = ' decade '; Case 20:s = ' 20 '; Break Break Case 30:s = ' 30 '; Break Break Default:s = Nstr2[math.floor (D/10)]; S + + nstr1[d%10]; return (s); }///////////////////////////////////////////////////////////////////////////////var cld; function Drawcld (SY,SM) {var i,sd,s,size; CLD = new Calendar (SY,SM); if (sy>1874 && sy<1909) ydisplay = ' Guangxu ' + ((SY-1874) ==1)? ' Yuan ': SY-1874) if (sy>1908 && sy<1912) ydisplay = ' Xuantong ' + (((SY-1908) ==1)? ' Yuan ': SY-1908) if (sy>1911 && sy<1950) Ydisplay = ' Republic of China ' + (((SY-1911) ==1)? ' Yuan ': SY-1911)//if (sy>1949) Ydisplay = ' Republic ' + ((SY-1949) ==1)? ' Yuan ': SY-1949)//gz.innerhtml = Ydisplay + ' Lunar New Year ' + cyclical (sy-1900+36) + ' year ' +animals[(SY-4)%12]+ ' "; if (sy>1949) Ydisplay = ' gz.innerhtml = ydisplay + ' lunar ' + cyclical (sy-1900+36) + ' year ' +animals[(SY-4)%12]+ ' "; ymbg.innerhtml = "" + SY + "<BR>" + MONTHNAME[SM]; for (i=0;i<42;i++) {sobj=eval (' SD ' + I); Lobj=eval (' LD ' + I); Sobj.classname = '; SD = I-cld.firstweek; if (sd>-1 && sd<cld.length) {//Date sobj.innerhtml = sd+1; if (Cld[sd].istoday) sObj.classname = ' Todyacolor '; Today's color sObj.style.color = Cld[sd].color; National holiday Color if (cld[sd].lday==1)//display lunar month lobj.innerhtml = ' <b> ' + (cld[sd].isleap? Leap ': ' + cld[sd].lmonth + ' month ' + (Monthdays (cld[sd].lyear,cld[sd].lmonth) ==29? ' Small ': ' big ') + ' </b> '; else//show lunar Day lobj.innerhtml = Cday (Cld[sd].lday); S=cld[sd].lunarfestival; if (s.length>0) {//Chinese festival if (s.length>6) s = S.substr (0, 4) + ' ... '; s = S.fontcolor (' red '); else {//country Calendar Festival S=cld[sd].solarfestival; if (s.length>0) {size = (s.charcodeat (0) >0 && s.charcodeat (0) <128)? 8:4; if (s.length>size+2) s = s.substr (0, size) + ' ... '; s = S.fontcolor (' Blue '); else {//24 throttle s=cld[sd].solarterms; if (s.length>0) s = S.fontcolor (' Limegreen '); } if (s.length>0) lobj.innerhtml = s; else {//non-date sobj.innerhtml = '; lobj.innerhtml = '; }} function Changelong () {var y,m,ly,lm,id,im,iy,yangy,yangm,deltm,miny,tt; CLD. SY.SELECTEDINDEX=CLD. D1.selectedindex; CLD. SM.SELECTEDINDEX=CLD.D2.selectedindex; yangm=0;yangy=0; Tt=true; while (TT) {yangm=0;yangy=0; CHANGECLD (); for (i=0;i<42;i++) {SD = I-cld.firstweek; if (sd>-1 && sd<cld.length) {//date within if (CLD[SD].LMONTH==CLD. d2.selectedindex+1) && (CLD[SD].LYEAR==CLD. d1.selectedindex+1900)) {yangy=cld. sy.selectedindex+1900; YANGM=CLD. Sm.selectedindex; Tt=false; Break }} if (!TT) break; PUSHBTM (' MD '); CHANGECLD (); Alert (CLD. sy.selectedindex+ "" +CLD. Sm.selectedindex); for (i=0;i<42;i++) {SD = I-cld.firstweek; if (sd>-1 && sd<cld.length) {//date within if (CLD[SD].LMONTH==CLD. d2.selectedindex+1) && (CLD[SD].LYEAR==CLD. d1.selectedindex+1900)) {yangy=cld. sy.selectedindex+1900; YANGM=CLD. Sm.selectedindex; Tt=false; Break }} break; }//Alert (yangy+ "" +yangm); CLD. sy.selectedindex=yangy;//-1900; PUSHBTM (' YU '); PUSHBTM (' YD '); CLD. SM.SELECTEDINDEX=YANGM; PUSHBTM (' MD '); PUSHBTM (' MU '); }//changelong End Function CHANGECLD () {var y,m; Y=CLD. sy.selectedindex+1900; M=CLD. Sm.selectedindex; DRAWCLD (Y,M); function Pushbtm (k) {switch (k) {case ' YU ': if (CLD). sy.selectedindex>0) CLD. sy.selectedindex--; Break Case ' YD ': if (CLD). sy.selectedindex<149) CLD. sy.selectedindex++; Break Case ' MU ': if (CLD). sm.selectedindex>0) {CLD. sm.selectedindex--; else {CLD. sm.selectedindex=11; if (CLD). sy.selectedindex>0) CLD. sy.selectedindex--; } break; Case ' MD ': if (CLD). SM.SELECTEDINDEX<11) {CLD. sm.selectedindex++; else {CLD. sm.selectedindex=0; if (CLD). sy.selectedindex<149) CLD. sy.selectedindex++; } break; DEFAULT:CLD. sy.selectedindex=ty-1900; CLD. Sm.selectedindex=tm; } CHANGECLD (); var today = new Date (); var TY = Today.getfullyear (); var TM = Today.getmonth (); var TD = Today.getdate (); var width = "130"; var offsetx = 2; var offsety = 16; var x = 0; var y = 0; var snow = 0; var sw = 0; var cnt = 0; var DStyle; Document.onmousemove = MEVN; Show details Date data function MOVR (v) {var s,festival; var sobj=eval (' SD ' + V); var d=sobj.innerhtml-1; Syear,smonth,sday,week,//lyear,lmonth,lday,isleap,//cyear,cmonth,cday if (sobj.innerhtml!= ') {SObj.style.curso r = ' S-resize '; if (cld[d].solarterms = = ' && Cld[d].solarfestival = = ' && Cld[d].lunarfestival = = ') festival = '; Else Festival = ' <table width=100% border=0 cellpadding=2 cellspacing=0 bgcolor= ' #CCFFCC ' ><TR><TD> ' + ' <font color= ' #000000 > ' +cld[d].solarterms + ' + cld[d].solarfestival + ' + cld[d].lunarfestival+ ' </font&gt ;</td> ' + ' </TR></TABLE> '; s= ' <table width= "130" border=0 cellpadding= "2" cellspacing=0 bgcolor= "#000066" ><TR><TD> ' + ' < TABLE width=100% border=0 cellpadding=0 cellspacing=0><tr><td align= "right" ><font COLOR= "#ffffff" > ' + cld[d].syear+ ' year' +cld[d].smonth+ ' month ' +cld[d].sday+ ' Day <br> Week ' +cld[d].week+ ' <br> ' + ' <font color= ' violet ' > Lunar calendar ' + (cld[d ].isleap? ' Leap ': ' +cld[d].lmonth+ ' month ' +cld[d].lday+ ' Day </font><br> ' + ' <font color= ' yellow ' > ' +cld[d].cyear+ ' year ' + cld[d].cmonth+ ' month ' +cld[d].cday + ' Day </font> ' + ' </FONT></TD></TR></TABLE> ' + festival + ' </TD></TR></TABLE> '; document.all["detail"].innerhtml = s; if (snow = = 0) {dstyle.left = x+offsetx-(WIDTH/2); Dstyle.top = y+offsety; dstyle.visibility = "visible"; Snow = 1; {//Clear Detail Date data function Mout () {if (CNT >= 1) {SW = 0} if (sw = = 0) {snow = 0; dstyle.visibility = "Hi Dden ";} else cnt++; //Get Position function mevn () {x=event.x; Y=event.y; if (document.body.scrollLeft) {x=event.x+document.body.scrollleft; Y=event.y+document.body.scrolltop} if (snow) {dstyle.left = x+offsetx-(WIDTH/2) dstyle.top = y+offsety}}//////////////////////////////////////////// /////////function tick () {var today = new Date () clock.innerhtml = Today.tolocalestring (). Repla CE (/(Year/month)/g, "/"). Replace (/day/, ""); clock.innerhtml = Timeadd (today.togmtstring (), CLD. Tz.value) window.settimeout ("Tick ()", 1000); function Setcookie (name, value) {var today = new Date () var expires = new Date () Expires.settime (Today.gettime () + 1000*60*60*24*365) Document.cookie = name + "=" + Escape (value) + "; Expires= "+ expires.togmtstring ()} function GetCookie (name) {var search = Name + ' = ' if (Document.cookie.length > 0 {offset = document.cookie.indexOf (search) if (offset!=-1) {offset = Search.length end = Document.cookie.indexO F (";", offset) if (end = = 1) end = Document.cookie.length return unescape (document.cookie.substring (offset, end)} El Se return "}}/////////////////////////////////////////////////////////function initial () {DStyle = Detail.sty Le CLD. sy.selectedindex=ty-1900; CLD. Sm.selectedindex=tm; DRAWCLD (TY,TM); CLD. Tz.selectedindex=getcookie ("TZ"); Changetz (); Tick (); }//--> </SCRIPT> <style>.todyacolor {background-color:aqua} </STYLE> <meta Content = "Microsoft FrontPage 4.0" name=generator></head> <body onload=initial () > <script language= javascript><!--if (navigator.appname = "Netscape" | | parseint (navigator.appversion) < 4) document.write (" <h1> your browser is unable to perform this program. </h1> This program will not perform!! after IE4 version ") --></script> <div id=detail ></DIV> <form name=cld> <div align= "center" > <tabl E width= "672" align= "right" height= "259" bordercolordark= "#CC9900" border= "4" background= "L11.gif" > <CENTER> <center> <TBODY> </center></center> <TR> <td align=middle valign=top width= "170" Heig ht= "255" > <div align= "center" > <center> <table border=1 colspan=2 width= "221" > <CENTER> &L T;center><foNT size=2 > <td width= "209" > <p align= "center" ><font color=red> Local computer time: </FONT></FONT&G T;<br><font color= #000080 face=arial id=clock size=3 align= "center" ></FONT> <P><!--Time zone * Indicates automatic adjustment for daylight saving time--> </center> </CENTER> </TABLE> </center> </div> <div align= "Cente R "> <center> <table border=1 height=" 1 "width=" "> <td height=" 1 "width=" 255 "> <table width=" 212 "height=" 1 "><CENTER> <center> <font id=tsave ></FONT> <td height=" 1 "width=" 152 " ; <font size= "2" ><font > <font color= "#0000FF" > Gregorian calendar </font> year </font><font color= #ffffff ><select name=sy onchange=changecld () > <script language=javascript><!--for (I=1900;I<2050;I++) document.write (' <option> ' +i)//--></script> </SELECT> </FONT> month <font color= #ffffff ><select NAME=SM Onchange=changecLD () > <script language=javascript><!--for (i=1;i<13;i++) document.write (' <option> ' +i)//--> </SCRIPT> </SELECT></FONT></font> <p><font size= "2" ><font ><font color = "#0000FF" > Lunar calendar </font> year </font><font color= #ffffff ><select name=d1 onchange=changelong () > <script language=javascript><!--for (i=1900;i<2050;i++) document.write (' <option> ' +i)//--> </SCRIPT> </SELECT> </FONT> Month <font color= #ffffff ><select name=d2 onchange=changelong () ; <script language=javascript><!--for (i=1;i<13;i++) document.write (' <option> ' +i)//--></ script> </SELECT></FONT></font></P> <div align= "center" > </div> <td width= "1" align= "center" height= "1" > <button onclick= "Pushbtm (' MU ')" > Month ↑</button> <button onclick= " PUSHBTM (') ' > month </BUTTON> <button onclick= "Pushbtm (' MD ')" > Month ↓</button> </td> </center></center> <tr> <CENTER> <td Align=center valign=top width=152 height= "1" > <button onclick= "Pushbtm (' YU ')" > year ↑</button> <BUTTON o nclick= "Pushbtm (' YD ')" > Year ↓</button> </TD> </center> <td colspan=2 width= "" "height=" 1 "> & Lt;p align= "left" ><input onclick= "Javascript:window.close ();" Type=button value= off ></p> </td> </table> <CENTER> <table border= "1" width= "100%" height = "1" bordercolordark= "#FFFFCC" > <tr> <td width= "100%" height= "1" ><font color= #0 > Lunar calendar exists across months if looking To the lunar month span two Gregorian months, with <font color=blue>[month ↑][month ↓]</font> Flip can find the exact date you want. </font></td> </tr> </table> </CENTER> </table> </center> </div> ; TD align=middle width= "423" height= "255" > <div > <p> <p> <p><font id=ymbg Arial Bla ck; Font-size:20pt "> </FONT> </DIV> <div align=" center "> <center> <table border=0 height=" 2 7 "cellspacing=" 1 "> <TBODY> <TR> <td bgcolor= #000080 colspan=7 align=" center "height=" ><fon " T color= #000080 size=2 > Moon </FONT> <font color= #ffffff face= song body Id=gz size=4></font><br></t d></tr> <tr align=middle bgcolor= #e0e0e0 > <td width=54 height= "1" align= "center" bgcolor= "#99CCFF" & Gt;<font size= "2" > Day </font></TD> <td width=54 height= "1" align= "center" bgcolor= "#99CCFF" > <font size= "2" > </font></TD> <td width=54 height= "1" align= "center" bgcolor= "#99CCFF" >< Font size= "2" > Two </font></TD> <td width=50 height= "1" align= "center" bgcolor= "#99CCFF" ><font Size= "2" > Three </font></TD> <td width=54 height= "1" align= "center" bgcolor= "#99CCFF" ><font size= " 2 "> Four </font></TD> <td width=54 Height= "1" align= "center" bgcolor= "#99CCFF" ><font size= "2" > Five </font></TD> <td width=54 height= "1" align= "center" bgcolor= "#99CCFF" ><font size= "2" > Six </font></TD></TR> <script language= javascript><!--var gnum for (i=0;i<6;i++) {document.write (' <tr align=center> ') for (j=0;j<7;j++) { Gnum = I*7+j document.write (' <td id= "GD ' + gnum + '" onmouseover= "MOVR (' + gnum + ')" onmouseout= "Mout ()" ><font ID = "SD ' + gnum + '" "size=2 face=" Arial Black "") if (j = = 0) document.write (' color=red ') if (j = = 6) if (i%2==1) Document.wri Te (' color=red ') Else document.write (' Color=green ') document.write (' title= ' "> </font><br><font id= "LD ' + gnum + '" "size=2 > </font></td>")} document.write (' </tr> ')}//--></script> &L t;/tbody></table> </center> </div> </TD> </TR></TBODY></TABLE> </ div> </FORM> </body> </html></td> </tr> </table>


Tip: You can modify some of the code before running

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.