一些很實用且必用的小腳本代碼第1/5頁
更新時間:2006年08月12日 00:00:00 作者:
腳本1:進入主頁以后自動播放聲音
<embed src="pnm://10.13.31.90/~kayvin/mihunji.rm" hidden=true autostart=true loop=true> 腳本2:進入主頁后自動最大話,省的去在自己單擊了
<script>
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
</script>
腳本3:顯示現(xiàn)在時間的腳本
<script language=vbscript>document.write now</script>
腳本4:顯示最后修改時間的腳本
<script>document.write(document.lastModified)</script>
腳本5:設(shè)為首頁,加為收藏,加入頻道,啟動outlook發(fā)信
<a style="cursor:hand"
onclick="this.style.behavior="url(#default#homepage)";
this.setHomePage(http://jb51.net/);">">設(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=douxy001@gmail.com>與我聯(lián)系</a>
腳本6:狀態(tài)欄動態(tài)顯示現(xiàn)在時間
<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:后退,刷新,前進
<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:設(shè)定時間彈出窗口,4000=4秒,當(dāng)然你可以自定義
<script>function l()
{
window.open(" 10.13.31.90/~kayvin/ ","name","width=500,height=150,border=0")
}
setTimeout("l()",4000)
</script>
<embed src="pnm://10.13.31.90/~kayvin/mihunji.rm" hidden=true autostart=true loop=true> 腳本2:進入主頁后自動最大話,省的去在自己單擊了
<script>
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
</script>
腳本3:顯示現(xiàn)在時間的腳本
<script language=vbscript>document.write now</script>
腳本4:顯示最后修改時間的腳本
<script>document.write(document.lastModified)</script>
腳本5:設(shè)為首頁,加為收藏,加入頻道,啟動outlook發(fā)信
<a style="cursor:hand"
onclick="this.style.behavior="url(#default#homepage)";
this.setHomePage(http://jb51.net/);">">設(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=douxy001@gmail.com>與我聯(lián)系</a>
腳本6:狀態(tài)欄動態(tài)顯示現(xiàn)在時間
<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:后退,刷新,前進
<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:設(shè)定時間彈出窗口,4000=4秒,當(dāng)然你可以自定義
<script>function l()
{
window.open(" 10.13.31.90/~kayvin/ ","name","width=500,height=150,border=0")
}
setTimeout("l()",4000)
</script>
相關(guān)文章
JavaScript異步操作的幾種常見處理方法實例總結(jié)
這篇文章主要介紹了JavaScript異步操作的幾種常見處理方法,結(jié)合實例形式總結(jié)分析了JavaScript常見的異步操作處理方法相關(guān)實現(xiàn)技巧與注意事項,需要的朋友可以參考下2020-05-05js this函數(shù)調(diào)用無需再次抓獲id,name或標(biāo)簽名
this就是你當(dāng)前要執(zhí)行的js所抓獲的節(jié)點,這樣在js里就可以不用document.getElement之類的寫法來抓獲id,name或標(biāo)簽名,具體示例如下2014-03-03return false;和e.preventDefault();的區(qū)別
Have you ever seen those two things (in the title) being used in jQuery? Here is a simple2010-07-07在Javascript操作JSON對象,增加 刪除 修改的簡單實現(xiàn)
下面小編就為大家?guī)硪黄贘avascript操作JSON對象,增加 刪除 修改的簡單實現(xiàn)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2016-06-06JavaScript模擬深藍vs卡斯帕羅夫的國際象棋對局示例
這篇文章主要介紹了JavaScript模擬深藍vs卡斯帕羅夫的國際象棋對局示例,使用javascript較為逼真的模擬出了國際象棋對弈的場景,需要的朋友可以參考下2015-04-04javascript中的event loop事件循環(huán)詳解
這篇文章主要給大家介紹了關(guān)于javascript中event loop事件循環(huán)的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2018-12-12JavaScript必知必會(二) null 和undefined
這篇文章主要介紹了JavaScript必知必會(二) null 和undefined的相關(guān)資料,非常不錯具有參考借鑒價值,需要的朋友可以參考下2016-06-06