Page useful effects of consolidation:
Worry-free script finishing date:
2004.06.26
========== Primary ==============================================================================================================================================================
1. Let the text constantly scroll
2. Record and display the last modification time of the web page
document.write ( "Last updated:" document.lastModified "")
script>
3. Close the current window
4.2 seconds after closing the current page
Settimeout ('window.close ();', 2000);
->
script>
Load the specified web page after 5.2 seconds
hEAD>
6. Add to Favorites
Function Bookmarkit ()
{
Window.external.addfavorite ('http: // your URL ",' your name ')
}
IF (Document.all) Document.write (' Add to Favorites )
Script>
7. Let the hyperlink not displayed underline
A: Link {text-decoration: none}
A: hover {text-decoration: none}
A: visited {text-decoration: none}
->
style>
8. No mouse button
Function Click () {if (Event.Button == 2 || Event.Button == 3)
{
Alert ('Forbidden mouse button ");
}
Document.οnmοusedοwn = click // ->
Script>
9. Set this page as homepage
body>
========== Intermediate ============================================================================================================================================================================================
1. Holiday 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>
Tip: You can modify some code and then run
2. Click the button to print out the current page
IF (window.print) {
Document.write ('