Traditional Culture Encyclopedia - Almanac inquiry - How to find the solar terms of a certain day in JS calendar
How to find the solar terms of a certain day in JS calendar
& lt! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " & gt;
& ltHTML & gt& ltHEAD & gt& ltTITLE & gt& lt/TITLE & gt;
& ltMETA t = 0;
var dStyle
document.onmousemove = mEvn
Function movr (v) (
var s,festival,sjqFtvl
var sObj = eval(' SD '+v);
var d = sobj . innerhtml- 1;
if(sObj.innerHTML! ='') {
sobj . style . cursor = ' help ';
if(cld[d]。 solarTerms = = ' ' & amp& ampcld[d]。 solarFestival = = ' ' & amp& ampcld[d]。 lunarFestival == ' ')
festival =“”;
other
Festival ='< Table width =100% border = 0cell padding = 2cell spacing = 0bgcolor = "# CCFFCC" > & ltTR & gt& lt' TD ALIGN="center " >+
& ltFONT COLOR = " # 000000 " STYLE = " FONT-size:9pt;" & gt+cld[d]。 solarTerms+' '+' & lt; /FONT & gt; & lt/TD & gt; +
& lt/TR & gt; & lt/TABLE & gt; ';
s = ' & lttable border = " 2 " width = " 140 " border color = " # 0066 cc " bgcolor = " # fffbe 8 " cell padding = " 0 " cell spacing = " 0 " >& ltTR & gt& lt“td & gt”+
& lt table width = 100% BORDER=0 cell filling =0 cell spacing = 0> & lttr & gt & lttdalign = "center" >< font color = "# ff00ff" style = "font-size: 9pt;" & gt+
Cld[d]。 sYear+' year' +cld[d]。 sMonth+' month' +cld[d]。 What day is it? Zhou' +CLD [d]. Week+'
& ltfont color="#FF8000 "> lunar calendar' +cld[d]. cYear+' Year' +(cld[d])。 isLeap? Leap':'') +cMonth(cld[d].lMonth)+' month'+cday (CLD [d])。 lday)+'
& lt' font color="009900 " > '+cld[d]。 cYear+' Year' +cld[d]。 cMonth+' Month' +cld[d]。 CDay+' days & lt/DIV & gt;;
& lt center & gt
& lt Table border = 0>
& ltTBODY & gt
& ltTR & gt
& ltFORM name = xz & gt
& ltTD width = 440 align = center vAlign = top bgcolor = " # CCCCCC " & gt;
& lt label & gt 122
& lttextarea width = 440 name = " textarea " & gt; & lt/textarea & gt;
& lt/label & gt;
& lt/FORM & gt;
& ltFORM name = CLD & gt;
& ltTD align = middle & gt
& ltTABLE width = " 300 " border = " 0 " cellSpacing = 1 cell padding = 0 & gt;
& ltTR & gt& ltTBODY & gt& ltTR bgcolor="#3 19AFF " >。
& ltTD colSpan=7 align="center " >& ltFONT style="FONT-SIZE: 9pt "
Color = # 9900CC size = 3> A.D.
& ltSELECT onchange = change CLD()name = years & gt; & lt scripting language = JavaScript & gt for (I =1900; I<2 10 1; i++)document . write(' & lt; Options >;' +I)& lt; /SCRIPT & gt; & lt/SELECT & gt; year
& ltSELECT onchange = change CLD()name = months & gt; & lt scripting language = JavaScript & gt for (I =1; I< 13; i++)document . write(' & lt; Options >;' +I)& lt; /SCRIPT & gt; & lt/SELECT & gt; moon
first
& ltSELECT name = hours & gt& lt scripting language = JavaScript & gt for (I =1; I< 13; i++)document . write(' & lt; Options >;' +I)& lt; /SCRIPT & gt; & lt/SELECT & gt; while
& lttdwidth = 54>< fontcolor = red>. Sun & lt/FONT & gt;; & lt/TD & gt;
& lttdwidth = 54>1< font color = "# e7F7e" >. MON & lt/FONT & gt; & lt/TD & gt;
& ltTD width = 54> Second < font color = "# E7F7e" > tue</font > & lt/TD & gt;
& ltTD width = 54> three
& ltTD width = 54> Four
& ltTD width = 54> Five
& ltTD width = 54 & gt& ltFONT color=green>。 six
& lt scripting language = JavaScript & gt& lt! -
Giant variety
for(I = 0; I<6; i++) {
document . write(' & lt;' tr align = center & gt')
for(j = 0; j & lt7; j++) {
gNum = i*7+j
document . write(' & lt; TD id = " GD '+gNum+' " onMouseOver = " mOvr('+gNum+')" onMouseOut = " mOut()" onMouseDown = " mDown('+gNum+')" ')
document . write(' & gt; & ltfont id = " SD '+gNum+' " size = 5 face = " Arial Black " ')
if(j = = 0)document . write(' color = red ')
If (j == 6)
if(I % 2 = = 1)document . write(' color = red ')
else document . write(' color = green ')
document . write(' TITLE = " " & gt; & lt/font & gt; & ltbr & gt& ltfont id = " LD '+gNum+' " size = 2 style = " font-size:9pt;" & gt& lt/font & gt; & lt/TD & gt; )
}
document . write(' & lt; /tr & gt;' )
}
//-& gt; & lt/SCRIPT & gt;
& lt/TBODY & gt; & lt/TABLE & gt; & lt/TD & gt;
& ltTD width = 60 align = middle vAlign = top bgcolor = " # CCCCCC " & gt; & ltBR & gt& ltBR & gt& ltP & gt& ltTR & gt& ltTD align = right bgColor = # 00aa 55 colSpan = 8 & gt。 & ltFont color = # ffffface = ì ì id = GZ>;; & lt/FONT & gt; & lt/TD & gt; & lt/TR & gt; & lt/TBODY & gt; & lt/TABLE & gt; & lt/TD & gt; & lt/FORM & gt; & lt/CENTER & gt; & lt/TR & gt; & lt/TBODY & gt; & lt/TABLE & gt; & lt/CENTER & gt; & lt/BODY & gt; & lt/HTML & gt;
- Previous article:I heard girls don't want bangs? Affect luck? Is there such a thing
- Next article:1986 is the fate of a tiger born in May.
- Related articles
- Go out and see the secret of the Gregorian calendar scam
- Gregorian calendar 20 16.2.4
- Gregorian calendar 1984 1 1 month
- What is the 24th day of the twelfth lunar month in 2020? What auspicious time is February 5th?
- 2065438+May 26, 2008 Gregorian calendar
- 32 general learning apps hidden by Xueba!
- Huang Li watches videos every day.
- Search the weather in the Gregorian calendar
- Buy a new car. Good words are jingling.
- 20 17 is the fortune of cattle?