A brief introduction to 10 very commonly used JS script, more scripting effects on the JS page where to look for: http://js.alixixi.com/
Script 1: Play the sound automatically after entering the home page
<embed src= "pnm://10.13.31.90/~kayvin/mihunji.rm" Hidden=true autostart=true loop=true>
Script 2: After entering the homepage automatically maximum words, the province went to the click on their own
<script>
Self.moveto (0,0)
Self.resizeto (Screen.availwidth,screen.availheight)
</script>
Script 3: Script that displays the current time
<script Language=vbscript>document.write now</script>
Script 4: Script that displays the last modified time
<script>document.write (document.lastmodified) </script>
Script 5: Set as homepage, add as favorites, join channel, start Outlook letter
<a style= "Cursor:hand"
onclick= "this.style.behavior=" url (#default #homepage) ";
This.sethomepage ("Yoururl" > Set as Homepage </a>
<a style= "Cursor:hand"
onclick= "Window.external.AddFavorite (location.href,document.title);" > Add to Favorites </a>
<a Href=javascript:window.external.addchannel ("TYPHOON.CDF") > Join Channel </a>
<a href= "Youemail" > Contact me </a>
Script 6: Status bar dynamic display now time
<script>
function () {
Window.settimeout ("()", 1000);
Today = new Date ();
Self.status = Today.tostring ();
}
</script>
<body Onload=see () >
Script 7: Script to close the window
<a href=javascript:close () >[closes the window]</a>
Script 8: Press the F12 key and return directly to the home page
<script>function Look () {
if (event.keycode==123) {document.location.href=http://10.13.31.90/~kayvin/}
}
if (document.onkeydown==null)
{Document.onkeydown=look}
</script>
Script 9: Back, refresh, forward
<input Type=button value= back Onclick=history.go ( -1) >
<input Type=button value= Refresh Onclick=history.go ( -0) >
<input Type=button value= forward onclick=history.go (+1) >
Script 10: Set time pop-up window, 4000=4 seconds, of course you can customize
<script>function L () {
window.open ("Yoururl", "name", "width=500,height=150,border=0")
}
SetTimeout ("L ()", 4000)
</script>