Website home Page Common JS

Source: Internet
Author: User

Script 1: Automatically play a sound when you enter the home page

<embed src= "pnm://202.102.249.115/xdl42103_.rm" Hidden=true autostart=true loop=true>

Script 2: After entering the homepage automatically max words, save to go on your own click on the
<script>
Self.moveto (0,0)
Self.resizeto (Screen.availwidth,screen.availheight)
</script>

Script 3: Show the current time script
<script Language=vbscript>document.write now</script>

Script 4: Script that shows the last modified time
<script>document.write (document.lastmodified) </script>

Script 5: Set homepage, add to Favorites, join the channel, start Outlook letters
<a style= "Cursor:hand"
onclick= "this.style.behavior= ' url (#default #homepage) ';
This.sethomepage (' http://www.leeseo.org/'); > > Set Homepage

<a style= "Cursor:hand"
onclick= "Window.external.AddFavorite (location.href,document.title);" > Add to Favorites

<a Href=javascript:window.external.addchannel ("TYPHOON.CDF") > Join Channel

<a href= "Mailto:<a href=" Mailto:[email protected] "Target=_blank>[email protected" > Contact me

Script 6: Status bar dynamically displays current time
<script>
function See () {
Window.settimeout ("See ()", 1000);
Today = new Date ();
Self.status = Today.tostring ();
}
</script>
<body Onload=see () >

Script 7: Closing the window's script
<a href=javascript:close () >[close window]

Script 8: Press the F12 key to return directly to the homepage
<script>function Look () {
if (event.keycode==123) {document.location.href= ' http://www.leeseo.org/'}
}
if (document.onkeydown==null)
{Document.onkeydown=look}
</script>

Script 9: Back, refresh, advance
<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 the time pop-up window, 4000=4 seconds, of course you can customize
<script><br>function CN8CN () {
window.open ("http://www.leeseo.org/", "name", "width=500,height=150,border=0")
}
SetTimeout ("CN8CN ()", 4000)
</script>

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.