Take 9CBS as an example, add the following content in the static news / declaration, the effect is as shown in this page
Var DiaryDays = "<2004-08-05> <2004-08-09> <2004-08-12> <2004-08-19> <2004-08-19> <2004-07-14> <2004-07 -13> <2004-07-08> <2004-07-05> <2004-07-04> <2004-07-03> <2004-06-27> <2004-06-26> <2004-06- 25> "
script>
.calendarbigborder {font-family: "arial", "Helvetica", "Sans-Serif", "Song"; Text-Decoration: none; width: 170; Background-Color: #ffff; font-size: 9pt; border: 1px dotted # 999;}
.calendartd {font-family: "arial", "helvetica", "sans-serif", "Song"; font-size: 9pt; color: # 000000; Background-color: #eeeeee; height: 18px; width: 11 %; Text-align: center;
.calendarminput {font-family: "Arial", "Helvetica", "Sans-Serif", "Song"; Font-Size: 9pt; Text-Decoration: None; Background-Color: #ffffff; Height: 15px; border: 1PX Solid # 666666; width: 19px; color: # 0099ff;}
.calendaryInput {font-family: "arial", "helvetica", "sans-serif", "Song"; font-size: 9pt; color: # 0099ff; future-decoration: none; background-color: #ffffff; Height : 15px; width: 34px; border: 1px solid # 666666;
.calendarmonthtitle {font-family: "arial", "Helvetica", "Sans-Serif", "Song"; font-size: 9pt; font-weight: Normal; TEXT-ALIGN: CENTER; color: # 333333; Text-Decoration: none; background-color: #eeeeeee; 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-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 }
.calendardaysat {font-family: "arial", "helvetica", "Sans-Serif", "Song"; font-size: 9pt; color: # 333333; text-decoration: none; background-color: #eeeee; 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: #eeeee; text -Align: center; height: 18px; width: 12%;
.calendarlink {font-family: "arial", "Helvetica", "Sans-Serif", "Song"; font-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: Solid; 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>
Var months = new array ("1", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleventh" , "Twelve");
Var Daysinmonth = New Array (31, 28, 31, 30, 31, 30, 31, 30, 31, 30, 31);
Var days = new array ("Japan", "One", "Second", "Three", "Four", "Five", "Six");
VAR ClassTemp;
Var calendahover = "calendahover";
VAR Today = New getToday ();
Var year = Today.Year;
Var month = Today.month;
VAR newcal;
// Get a certain number of days
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.now = 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 For the day var startday = newcal.getday (); // The month start time var endday = getDays (newcal.getmonth (), newcal.getfullyear ()); // At the end of the month, VAR Daily = 0; // Used to generate a calendar Niki IF ((Today.Year == Newcal.getFullyear ()) && (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
= INTDAYSINMONTH)) {Cell.innertext = Daily; daily ;} else cell.innertext = "";} Document.all.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 = (newcal.getmonth () 1) <10? ("0" 1) :( Newcal.getMonth () 1); var day = event.srcelement.innertext <10? ("0" Event.Srcelement.innertext ) :( Event.srcelement.innertext); var D = "<" newcal.getfullyear () " " " " day ">"; if ("TD" == Event.srcelement.tagname) IF (""! = event.srcelement.innerText) && (DiaryDays.indexof (D)! = - 1)) {Diary.Location = "/ Foxmail / Archive /" Newcal.getFullyear () "/" MON "/" day ". aspx"; window.location.href = diary.location;}}
Function setDate () {if (Document.all.Mont.Value <1 || Document.all.month.Value> 12) {alert ("The monthly valid range is between 1-12!"); return;} year = Math.ceil (Document.all.year.Value); Month = Math.ceil (Document.all.Mont.Value-1); Calendar ();} script>
Month [ next month ] [ Previous month tr> | ||||||