網站首頁常用js

來源:互聯網
上載者:User

標籤:style   http   java   os   width   art   

指令碼1:進入首頁以後自動播放聲音

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

指令碼2:進入首頁後自動最大話,省的去在自己單擊了
<script>
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
</script>

指令碼3:顯示現在時間的指令碼
<script language=vbscript>document.write now</script>

指令碼4:顯示最後修改時間的指令碼
<script>document.write(document.lastModified)</script>

指令碼5:設為首頁,加為收藏,加入頻道,啟動outlook發信
<a style="cursor:hand"
onclick="this.style.behavior=‘url(#default#homepage)‘;
this.setHomePage(‘http://www.leeseo.org/‘);">">設為首頁

<a style="cursor:hand"
onclick="window.external.AddFavorite(location.href,document.title);">加入收藏

<a href=javascript:window.external.addChannel("typhoon.cdf")>加入頻道

<a href="mailto:<A href="mailto:[email protected]" target=_blank>[email protected]">與我聯絡

指令碼6:狀態列動態顯示現在時間
<script>
function see(){
window.setTimeout("see()",1000);
today = new Date();
self.status = today.toString();
}
</script>
<body onload=see()>

指令碼7:關閉視窗的指令碼
<a href=javascript:close()>[關閉視窗]

指令碼8:按下F12鍵,直接返回首頁
<script>function look(){
if(event.keyCode==123){document.location.href=‘http://www.leeseo.org/‘}
}
if(document.onkeydown==null)
{document.onkeydown=look}
</script>

指令碼9:後退,重新整理,前進
<input type=button value=後退 onclick=history.go(-1)>

<input type=button value=重新整理 onclick=history.go(-0)>

<input type=button value=前進 onclick=history.go(+1)>

指令碼10:設定時間快顯視窗,4000=4秒,當然你可以自訂
<script><BR>function cn8cn() {
window.open(" http://www.leeseo.org/","name","width=500,height=150,border=0")
}
setTimeout("cn8cn()",4000)
</script>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.