Some very useful and necessary small script code _javascript
Source: Internet
Author: User
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 (http://10.13.31.90/~kayvin/); " > "> Set homepage </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 10: Set time pop-up window, 4000=4 seconds, of course you can customize
<script>function L ()
{
window.open ("10.13.31.90/~kayvin/", "name", "width=500,height=150,border=0")
}
SetTimeout ("L ()", 4000)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service