欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JavaScript 經(jīng)典效果集

 更新時(shí)間:2007年01月13日 00:00:00   作者:  

些很實(shí)用且必用的小腳本代碼:

腳本1:進(jìn)入主頁以后自動(dòng)播放聲音 
<embed src="pnm://10.13.31.90/~kayvin/mihunji.rm" hidden=true autostart=true loop=true> 

腳本2:進(jìn)入主頁后自動(dòng)最大話,省的去在自己單擊了 
<script> 
self.moveTo(0,0) 
self.resizeTo(screen.availWidth,screen.availHeight) 
</script> 

腳本3:顯示現(xiàn)在時(shí)間的腳本 
<script language=vbscript>document.write now</script> 

腳本4:顯示最后修改時(shí)間的腳本 
<script>document.write(document.lastModified)</script> 

腳本5:設(shè)為首頁,加為收藏,加入頻道,啟動(dòng)outlook發(fā)信 
<a style="cursor:hand" 
onclick="this.style.behavior="url(#default#homepage)"; 
this.setHomePage("yourURL">設(shè)為首頁</a> 

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

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

<a href="youEmail">與我聯(lián)系</a> 

腳本6:狀態(tài)欄動(dòng)態(tài)顯示現(xiàn)在時(shí)間 
<script> 
function see(){ 
window.setTimeout("see()",1000); 
today = new Date(); 
self.status = today.toString(); 

</script> 
<body onload=see()> 

腳本7:關(guān)閉窗口的腳本 
<a href=javascript:close()>[關(guān)閉窗口]</a> 

腳本8:按下F12鍵,直接返回首頁 
<script>function look(){ 
if(event.keyCode==123){document.location.href=http://10.13.31.90/~kayvin/} 

if(document.onkeydown==null) 
{document.onkeydown=look} 
</script> 

腳本9:后退,刷新,前進(jìn)

復(fù)制代碼 代碼如下:

<input type=button value=后退 onclick=history.go(-1)> 
<input type=button value=刷新 onclick=history.go(-0)> 
<input type=button value=前進(jìn) onclick=history.go(+1)> 

腳本10:設(shè)定時(shí)間彈出窗口,4000=4秒,當(dāng)然你可以自定義
復(fù)制代碼 代碼如下:

<script>function l() { 
window.open("yourURL","name","width=500,height=150,border=0") 

setTimeout("l()",4000) 
</script>

二 鼠標(biāo)旁邊的提示信息,類似與163登錄后的頁面提示效果

[Ctrl+A 全選 注:引入外部Js需再刷新一下頁面才能執(zhí)行]

相關(guān)文章

最新評論