Tip: you can modify some code before running
<html><head><title>Show special festival scripts</title><style type="text/css"><!--body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px}A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none } A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 }--></style><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><br><br><center><font color=red face="隶书" size=6>Show special festival scripts</font></center><br><br><center><table border=0 bordercolor=blue borderlight=green cellpadding="0" cellspacing="0"><tr><td align=center><font size=4 color=red face="Arial, Helvetica, sans-serif"><strong>You can switch to a special holiday (such as May 1)</strong></font></td></tr><tr><td align=center><SCRIPT language=javascript><!--calendar = new Date();day = calendar.getDay();month = calendar.getMonth();date = calendar.getDate();year = calendar.getYear();if (year< 100) year = 1900 + year;cent = parseInt(year/100);g = year % 19;k = parseInt((cent - 17)/25);i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;l = i - j;emonth = 3 + parseInt((l + 40)/44);edate = l + 28 - 31*parseInt((emonth/4));emonth--;var dayname = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");var monthname = new Array ("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月" );document.write("<font color=FF0000>"+year +"年");document.write(monthname[month]);document.write(date + "日");document.write(dayname[day]+" "+"</font>");// January(1月份节日,以下同。)if ((month == 0) && (date == 1)) document.write("元旦");if ((month == 0) && (date == 10)) document.write("我的生日");if ((month == 2) && (date == 8)) document.write("国际妇女节");if ((month == 4) && (date == 1)) document.write("国际劳动节");if ((month == 4) && (date == 4)) document.write("青年节");if ((month == 5) && (date == 1)) document.write("国际儿童节");if ((month == 9) && (date == 1)) document.write("国庆节");if ((month == 11) && (date == 25)) document.write("圣诞节"); document.write("<br></font>");//--> </sCRIPT></td></tr></table></center><br><br><center> <SCRIPT LANGUAGE="JavaScript"><!-- hidefunction goHist(a) { history.go(a);}//--></script></center><br><br></body></html>
Tip: you can modify some code before running