1. Keep text scrolling
<MARQUEE> scroll text </MARQUEE>
2. Record and display the last modification time of the webpage
<Script language = JavaScript>
Document. write ("Last Update time:" + document. lastModified + "")
</Script>
3. Close the current window
<A href = "/" onClick = "javascript: window. close (); return false;"> close the window </a>
Close the current page in 4.2 seconds
<Script language = "JavaScript">
<! --
SetTimeout (window. close ();, 2000 );
-->
</Script>
Load the specified webpage in 5.2 seconds
<Head>
<Meta http-equiv = "refresh" content = "2; URL = http: // your URL">
</Head>
6. Add to favorites
<Script Language = "JavaScript">
Function bookmarkit ()
{
Window. external. addFavorite (http: // your website, your website name)
}
If (document. all) document. write (<a href = "#" onClick = "bookmarkit ()"> Add to favorites </a>)
</Script>
7. Leave the hyperlink ununderlined
<Style type = "text/css">
<! -
A: link {text-decoration: none}
A: hover {text-decoration: none}
A: visited {text-decoration: none}
->
</Style>
8. prohibit right-click actions
<Script Language = "JavaScript">
Function click () {if (event. button = 2 | event. button = 3)
{
Alert (right-click prohibited );
}
Document. onmousedown = click // -->
</Script>
9. Set this page as the homepage
<Body bgcolor = "# FFFFFF" text = "#000000">
<! -- URL: http: // your url -->
<A class = "chlnk" style = "cursor: hand" HREF
OnClick = "this. style. behavior = url (# default # homepage );
This. setHomePage (your website name); "> <font color =" 000000 "size =" 2 "face =" "> set as homepage </font> </a>
</Body>