Height: 24px; text-align: center; color: # 333333; text-decoration: none; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1PX; border-left-width: 1px; border-bottom-style: none; border-top-color: # 999999; border-right-color: # 999999; border-bottom-color: # 999999; border-left-color : # 999999;} .calendarnow {font-family: "arial", "helvetica", "sans-serif", "Song"; font-size: 9pt; font-weight: bold; color: # 000000; Background-Color : # C0c9d3; Height: 18px; Text-Align: center;} .calendairs, "Helvetica", "Sans-Serif", "Song", "Sans-Serif", "SANS-Serif", "Song", Font-size: 9pt; Color: # 333333 Text-Decoration: None; Background-Color: #eeeeeee; Text-Align: Center; Height: 18px; Width: 12%;} .calendardAysun {Font-Family: "Arial", "Helvetica", "Sans-Serif" , "Song"; font-size: 9pt; color: # 333333; Text-decoration: none; background-color: #eeeeee; text-align: center; height: 18px; width: 12%;} .calendarlink {font- Family: "Arial", "Helvetica", "Sans-Serif", "Song"; FO NT-size: 9pt; font-weight: normal; color: # 333333; text-decoration: none; background-color: # e7e7f6; text-align: center; height: 18px;} .categorytxt {font-family: "arial "" Helvetica "," Sans-Serif "," Song "; font-size: 9pt; line-height: 23px; color: # 333333; text-decoration: none;} .categoryTable {Border-Right-Width: 1px Border-bottom-width: 1PX; border-right-style: solid; border-bottom-style: noLid; border-left-style: none; border-right-color: # 000000; border-bottom-color: # 000000 Border-top-width: 1px; border-top-style: Solid; border-top-color: # 71b99c;} stop> <
Script language = "javascript"> var months = new array ("1", "two", "three", "four", "five", "six", "seven", "eight", "nine", " Ten "," 11 "," 12 "); var daysinmonth = new Array (31, 28, 31, 30, 31, 30, 31); var days = new array ("Japan", "One", "Second", "Three", "Four", "Five", "Six"); Var ClassTemp; Var Calendarhover = "Calendarhover"; Var Today = New GetToday (); var Year = Today.Year; var Month = Today.month; var newcal; // Get a certain number of days in a month Function GetDays (Month, Year) {IF (1 == Month) Return ((0 == Year% 4) && (0! = (Year% 100))) || (0 == Year% 400)? 29: 28; Else Return Daysinmonth [MONTH];} // Get the day time information function gettoday () {this.11 = new date () THIS.Year = this.now.getFullyear (); this.month = this.now.getMonth (); this.day = this.now.getdate ();} // Generate calendar function calendar () {newcal = new Date (Year, Month, 1); // The first day of the current month Today = new gettoday (); var day = -1; // Used to determine if the calendar is Var startday = newcal.getday (); / / Beginning time Var endday = getDays (newcal.getMonth (), newcal.getFullyEar ()); // End time in the month VAR Daily = 0; // Used to generate the day value IF in the calendar ((Today.Year == Newcal.Getf Ullyear ()) && (Today.Month == Newcal.getMonth ())) DAY = Today.day; var caltable = document.all.caltable.tbodies.calendar; // Get a collection of calendar table VAR INTDAYSINMONTH = GetDays (Newcal .getMonth (), newcal.getfullyear ()); // gets the number of days // generates calendar for (var intwek = 0; intWeek Caltable.rows [intWeek] .Cells [intday]; // Get unit 袼 // Generate strings for judgment whether there is log var montemp = (newcal.getmonth () 1) <10? ("0" ( Newcal.getMonth () 1)) :( Newcal.getMonth () 1); if ((INTDAY == StartDay) && (0 == daily) {daily = 1;} var daytemp = daily <10? ( "0" Daily): (Daily); var D = "<" newcal.getfullyear () "-" montemp "-" daytemp ">"; // Select Style IF (Day == Daily) Cell .classname = "calendarnow"; else if (D)! = - 1) cell.classname = "calendarlink"; else if (intDay == 6) cell.className = "calendardAysat"; else = = 0) cell.classname = "calendardaysun"; else cell.classname = "calendartd"; // Generate value IF ((Daily> 0) && (Daily <= INTDAYSINMONTH)) {Cell.innertext = Daily; Daily ;} else Cell.innertext = "";} Document.ord.Year.Value = year; document.all.month.value = month 1;} function submonth () {IF ((MONTH-1) <0) {Month = 11 Year = year-1;} else {month = month-1;} calendar ();} function addMonth () {IF ((MONTH 1)> 11) {MONTH = 0; Year = Year 1;} else {MONTH = MONTH 1;} Calendar ();} // Get response event function getdiary () {var mon = (N EWCal.getMonth () 1) <10? ("0" (newcal.getmonth () 1)) :( Newcal.getMonth () 1); var day = event.srcelement.innertext <10? (" 0 " Event.Srcelement.innertext) :( Event.Srcelement.innertext); var D =" <" newcal.getfullyear () " - " MON " - " day "> "ing == Event.srcelement.tagname) IF ((""! = Event.srcelement.innerText) && (DiaryDays.indexof (D)! = - 1)) {Diary.Location = "/ FOXMAL.GETFULLLYEAR () " / " MON " / " day " .aspx "; window.location.href = diary.location;}} function setdate ()}} function setdate () {if (Document.all.Mont.Value <1 || Document.All.month.Value> 12) {Alert (" Month The effective range is between 1-12! "); Return;} year = math.ceil (Document.all.year.Value); Month = Math.ceil (Document.all.Mont.Value-1); Calendar () } Script> Last month
Year Month [ Next month ] [