& lthtml xmlns =“http://www . w3 . org/ 1999/XHTML“& gt;
& lthead & gt
& ltmeta http-equiv =“Content-Type“Content =“text/html; charset = GB 23 12“/》;
& lttitle & gt untitled document
& lt/head & gt;
& ltbody & gt
& lt scripting language = "JavaScript" >
var bsYear
var bsDate
var bsWeek
var arr len = 8; //Array length
var s value = 0; //seconds of the current year
var dayy = 0; //What day of the year?
var miy = 0; //Subscript of the month
var iyear = 0; //year mark
var dayim = 0; //What day in January?
Var spd = 86400// seconds per day
var year 1999 =“30; 29; 29; 30; 29; 29; 30; 29; 30; 30; 30; 29"; //354
var year 2000 =“30。 30; 29; 29; 30; 29; 29; 30; 29; 30; 30; 29"; //354
var year 200 1 =“30; 30; 29; 30; 29; 30; 29; 29; 30; 29; 30; 29; 30"; //384
var year 2002 =“30。 30; 29; 30; 29; 30; 29; 29; 30; 29; 30; 29"; //354
var year 2003 =“30。 30; 29; 30; 30; 29; 30; 29; 29; 30; 29; 30"; //355
var year 2004 =“29。 30; 29; 30; 30; 29; 30; 29; 30; 29; 30; 29; 30"; //384
var year 2005 =“29。 30; 29; 30; 29; 30; 30; 29; 30; 29; 30; 29"; //354
var year 2006 =“30。 29; 30; 29; 30; 30; 29; 29; 30; 30; 29; 29; 30";
Var month 1999= "February of the first month; March; April; Possibility; June; July; August; September; October; 1 1 month; December "
Var month200 1= "February of the first month; March; April; Leap in April; Possibility; June; July; August; September; October; 1 1 month; December "
Var month2004= "The first month; February; Leap in February; March; April; Possibility; June; July; August; September; October; 1 1 month; December "
Var month2006= "The first month; February; March; April; Possibility; June; July; July leap; August; September; October; 1 1 month; December "
Var Dn= "The first day; The next day; Third grade; The fourth day; The fifth day; The sixth day; The seventh day; The eighth day; The ninth day; The tenth day; Eleven; Twelve; Thirteen; Fourteen; Fifteen; Sixteen; Seventeen; Eighteen; Nineteen; Twenty; 2 1; 22; 23; 24; Twenty-five; 26; 27; 28; 29; Thirty ";
Var Ys = new array (arrlen);
ys【0】= 9 19094400; ys【 1】= 949680000; ys【2】= 980265600;
ys【3】= 10 13443200; ys【4】= 1044028800; ys【5】= 1074700800;
ys【6】= 1 107878400; ys【7】= 1 138464000;
Var Yn = new array (arrlen); //The name of the lunar year
Yn [0] = "One year in a year"; Yn [1] = "year of Chen Geng"; Yn [2] = "New Sinian";
Yn [3] = "non-agricultural calendar year"; Yn [4] = "Last year"; Yn [5] = "year of application";
Yn [6] = "yiyou year"; Yn [7] = "Xu Bingnian";
var D = new Date();
var YY = d . getyear();
var mm = d . getmonth()+ 1;
var DD = d . getdate();
var ww = d . getday();
if(ww = = 0)ww =“& lt; font color=RED>。 Sunday
If(ww = = 1)ww = "Monday";
If(ww = = 2)ww = "Tuesday";
If(ww = = 3)ww = "Wednesday";
if(ww = = 4)ww =“Thursday“;
If(ww = = 5)ww = "Friday";
if(ww = = 6)ww =“& lt; font color=green>。 Saturday
ww = ww
var ss = parse int(d . gettime()/ 1000);
If (YY<100) YY = "19"+YY;
for(I = 0; I< Allen; i++)
if(ss & gt; = Ys【I】){
iyear = I;
s value = ss-Ys【I】; //seconds of the current year
}
dayy = parse int(s value/SPD)+ 1; //Number of days in current year
var DPM = year 1999;
if(iyear = = 1)DPM = year 2000;
if(iyear = = 2)DPM = year 200 1;
if(iyear = = 3)DPM = year 2002;
if(iyear = = 4)DPM = year 2003;
if(iyear = = 5)DPM = year 2004;
if(iyear = = 6)DPM = year 2005;
if(iyear = = 7)DPM = year 2006;
DPM = DPM . split(“; “);
var Mn = month 1999;
if(iyear = = 2)Mn = month 200 1;
if(iyear = = 5)Mn = month 2004;
if(iyear = = 7)Mn = month 2006;
Mn = Mn . split(“; “);
Var Dn= "The first day; The next day; Third grade; The fourth day; The fifth day; The sixth day; The seventh day; The eighth day; The ninth day; The tenth day; Eleven; Twelve; Thirteen; Fourteen; Fifteen; Sixteen; Seventeen; Eighteen; Nineteen; Twenty; 2 1; 22; 23; 24; Twenty-five; 26; 27; 28; 29; Thirty ";
dn = dn . split(“; “);
dayim = dayiy
Var total = new array (13);
total【0】= parse int(DPM【0】);
for(I = 1; I<d pm.length-1; i++)total【I】= parse int(DPM【I】)+total【I- 1】;
for(I = DPM . length- 1; I>0; I-)
if(dayim & gt; Total [i-1]) {
dayim = dayim-total【I- 1】;
miy = I;
}
bsWeek = ww
BsDate=yy+ "year" +mm+ "month";
bsDate2 = dd
bs year =“lunar calendar“+Yn【iyear】;
bs year 2 = Mn【miy】+Dn【dayim- 1】;
if(ss & gt; = Ys【7】| | ss & lt; ys【0】)bs year = Yn【7】;
Function Time () {
document . write(“& lt; table border =‘0‘style =‘font-size:8pt; font-family:Tahoma‘cellspacing =‘0‘width =‘90‘border color =‘# cccccc‘height =‘ 1 10‘cell padding =‘0‘“;
document . write(“& lt; tr & gt& ltTD align =‘center‘style =‘border: 1 solid # 0099 ff; padding-top:4px‘& gt; & ltb & gt& ltfont color = # 3366cc & gt”+bs date+“& lt; /font & gt; & ltbr & gt& ltspan style =‘font-family:Arial Black。 font-size: 18pt; color:# ff 0000‘& gt; ”+bs date 2+“& lt; /span>。 & ltbr & gt& ltbr & gt& ltspan style =‘FONT-SIZE: 10.5 pt。 color:# 000000‘& gt; ”);
document . write(bs week+“& lt; /span>。 & ltbr>+“& lt; HR width =‘60‘》& lt/b & gt; & ltfont color=#666666》);
document . write(bs year+“& lt; br>+bs year 2+“& lt; /TD & gt; & lt/tr & gt; & lt/table & gt;” );
}
& lt/script & gt;
& lt marquee direction = right & gt& lt script & gt time () < /script & gt; & lt/marquee & gt;
& lt/body & gt;
& lt/html & gt;
This is the reality of the whole calendar. . If you want to show only the time, just delete everything else.