Show system current date
Today = new date ();
Function date () {
this.Length = Date.Arguments.Length
For (var i = 0; i THIS [i 1] = Date.Arguments [i]} VAR D = New Date ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); Document.write ", Today.GetyEAR (), "Year", today.getMonth () 1, "Month", Today.Getdate (), "Day", D [Today.getDay () 1], " font>"); Script> Festival countdown VAR TIMEDATE = New Date ("October 1,2002"); VAR Times = "National Day"; Var now = new date (); Var Date = TIMEDATE.GETTIME () - now.gettime (); Var time = math.floor (date / (1000 * 60 * 60 * 24); IF (Time> = 0) Document.write ("Now from" Times ":" Time "Day") script> document.write ( "Last updated:" document.lastModified "") Script> Close the current window . 2 seconds after closing the current page
Settimeout ('window.close ();', 2000); -> Script> . 2 seconds Load the specified web page
HEAD>
. Set this page as the homepage
Body>
.Add to Favorites
Function Bookmarkit ()
{
Window.external.addfavorite ('http: // your URL ",' your name ')
}
IF (Document.all) Document.write (' Add to Favorites )
Script>