腳本1:進(jìn)入主頁以后自動(dòng)播放聲音
<embed src="pnm:///mstong.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(''http://www.);">">設(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="mailtname@">與我聯(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://www.''} } if(document.onkeydown==null) {document.onkeydown=look} </script>
腳本9:后退,刷新,前進(jìn) <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)然你可以自定義 <script>function l() { window.open(" http://www. ","name","width=500,height=150,border=0" } setTimeout("l()",4000) </script>
三:文字鏈接代碼 如果您想點(diǎn)擊某處文字會(huì)連接到另外一個(gè)網(wǎng)頁的效果,這是超鏈接,代碼是這樣: <a href="網(wǎng)站地址";>九州在線</a>如果要點(diǎn)了這個(gè)文字以后重新打開一個(gè)窗口的話,代碼是:<a href="網(wǎng)站地址";; target="_blank">九州在線</a>
四:在網(wǎng)站上放圖片的代碼 如果你看到一個(gè)好看的圖片想放到網(wǎng)站上,代碼是這樣的: <img src="http://www..com/images/n/163logo.gif"; width="150" height="100"> 后面的數(shù)字調(diào)節(jié)圖片的尺寸大小。
五:圖片鏈接代碼 如果要點(diǎn)一下圖片就能打開一個(gè)網(wǎng)站的鏈接代碼是這樣的: <a href="http://www..com";><img src="http://www..com/images/n/163logo.gif"; width="150" height="100"></a> 如果要點(diǎn)一下圖片就能打開一個(gè)網(wǎng)站的鏈接,并且重新打開一個(gè)窗口。代碼是這樣的: <a href="http://www..com";; target="_blank"><img src="http://www..com/images/n/163logo.gif"; width="150" height="100"></a>上面的數(shù)字都能調(diào)節(jié)圖片尺寸大小。
六:換行代碼 如果你想換行,直接用Enter鍵是不行的,需要在您想換行的位置輸入<br> ,這樣就會(huì)分成兩行顯示 ,整個(gè)網(wǎng)站看起來也不會(huì)是一大片了,而是段落分明。
七:文字移動(dòng)的代碼是 <marquee>這里寫文字</marquee>
八:移動(dòng)圖片的代碼 <marquee><img src="http://es.tom.com/images/2002/gamemm/0604/s/36.jpg";><img src="http://es.tom.com/images/2002/gamemm/0604/s/13.jpg";><img src="http://es.tom.com/images/2002/gamemm/0604/s/30.jpg";><marquee> 把里面的圖片地址換成你的就行 想多放一個(gè)圖片就按照格式在中間插入: <img src="http://es.tom.com/images/2002/gamemm/0604/s/13.jpg";> 里面的圖片地址自己定。
九:背景音樂的代碼 如果想在你的網(wǎng)站上放上一段好聽的背景音樂,代碼是: <bgsound src="http:///xxx.mid";loop=10> <bgsound src="http://www./midi/music.asp?id=3073";loop=30> 里面的背景音樂地址你能自己替換。 前面的是音樂地址,一般都以mid或者mp3的形式結(jié)尾 后面的數(shù)字是播放次數(shù)。 http://www./midi/ 這個(gè)網(wǎng)站都有好的背景音樂
十:在網(wǎng)站中插入一個(gè)flash動(dòng)畫的代碼是 <embed width=200 height=200 src="http://ash.shangdu.com/view/2/fff.swf";> 里面的動(dòng)畫地址換成你的.動(dòng)畫地址都要以swf的形式結(jié)尾。這點(diǎn)需要注意。
十一:打開網(wǎng)站時(shí)候出現(xiàn)的歡迎詞代碼 <body onLoad= alert("你好,歡迎訪問本網(wǎng)站!")>
十二:關(guān)閉網(wǎng)站的時(shí)候出現(xiàn)的話 <body onUnload="window.alert(''謝謝您的光臨,誠邀加盟下線聯(lián)盟.請記住本站域名:http://www. 站長信箱:****@263.com 歡迎咨詢'')">
十三:打開網(wǎng)站的時(shí)候自己做一個(gè)彈出窗口的廣告 <script language="javascript"> var TimerID=1; window.open(''http://163.com','''',''width=600,height=300,left=100,top=50''); </script> 里面的 http://.com 這個(gè)是你預(yù)先做好的一個(gè)網(wǎng)頁,后面的數(shù)字是調(diào)節(jié)大小和位置的,你自己多試驗(yàn)幾次。
|