些很實用且必用的小腳本代碼
更新時間:2006年06月26日 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:設為首頁,加為收藏,加入頻道,啟動outlook發(fā)信
<a style="cursor:hand"
onclick="this.style.behavior="url(#default#homepage)";
this.setHomePage(http://10.13.31.90/~kayvin/);">">設為首頁</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="mailtkayvin@sohu.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:關閉窗口的腳本
<a href=javascript:close()>[關閉窗口]</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:設定時間彈出窗口,4000=4秒,當然你可以自定義
<script>function l()
{
window.open(" 10.13.31.90/~kayvin/ ","name","width=500,height=150,border=0")
}
setTimeout("l()",4000)
</script>
相關文章
pnpm?tauri?build?默認com.tauri.dev打包報錯解決
這篇文章主要介紹了pnpm?tauri?build?默認com.tauri.dev打包報錯解決方式,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2023-08-08
JavaScript實現(xiàn)余額數(shù)字滾動效果
這篇文章主要介紹了JavaScript實現(xiàn)余額數(shù)字滾動效果,將傳入的帶滾動的n位數(shù)字拆分成每一個要滾動的數(shù),然后動態(tài)的創(chuàng)建裝著滾動到每一位相應數(shù)字的容器,然后放入傳入的目標容器中,更多詳細內容,一起進入下面文章學習吧2021-12-12
JavaScript復原何同學B站頭圖細節(jié)示例詳解
這篇文章主要為大家介紹了JavaScript復原何同學B站頭圖細節(jié)示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2022-07-07
JavaScript數(shù)組對象高階函數(shù)reduce的妙用詳解
這篇文章主要為大家介紹了JavaScript數(shù)組對象高階函數(shù)reduce的妙用詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2023-04-04

