1.自動(dòng)彈出“設(shè)為首頁”代碼
<BODY leftmargin="0" topmargin="0" onMouseOver="if (style.behavior==‘‘){style.behavior=‘url(#default#homepage)‘setHomePage(‘http://rjlcdh.home.sunbo.net‘)}">
2. 將本站設(shè)為首頁:
<!--[if IE]>
<a style="cursor:hand" HREF onClick="this.style.behavior=‘url(#default#homepage)‘this.setHomePage(‘http://rjlcdh.home.sunbo.net);">設(shè)為首頁</a>
<![endif]-->
3. 將本站加入收藏夾:
<a href="javascript:window.external.Addfavorite(‘ http://www.sex1314.com‘,‘中國娛樂帝國‘)">加入收藏夾</a>
4.彈出窗口的制作
用戶可在自定義區(qū)塊中加入如下代碼:
<script LANGUAGE="JavaScript">
<!--
window.open ("
//-->
</script>
注:
url代表彈出窗口的地址
win_name可以替換為其它窗口名稱
height代表彈出窗口的高度
width代表彈出窗口的寬度
toolbar代表工具欄,no表示沒有工具欄,yes為有工具欄
menubar代表菜單欄,no表示不顯示菜單,用戶也可以用yes
scrollbars代表滾動(dòng)條,no表示沒有滾動(dòng)條,yes為有滾動(dòng)條,也可以用auto
resizable代表是否可以縮放彈出窗口
location代表地址欄
status代表關(guān)態(tài)欄
top代表窗口距瀏覽器上部的距離
5.IP查詢代碼,來源地顯示代碼
IP查詢代碼 :
<form action=http://www1.k688.com/ip/indexw.php method=post target="search" onsubmit="window.open(‘‘,‘search‘,‘width=450, height=400, scrollbars=yes‘);">
欲查詢IP:<input onMouseOver="this.focus()" onblur="if (this.value ==‘‘) this.value=‘請輸入IP地址‘" onFocus="this.select()" onClick="if (this.value==‘請輸入IP地址‘) this.value=‘‘" type="text" name="ip" size="13" value=‘請輸入IP地址‘> <input type="submit" name="sub" value="查詢"> </FORM>
常用類 普通代碼
--常用一
腳本1:進(jìn)入主頁以后自動(dòng)播放聲音
<embed src="pnm://mstong.net/mstong.rm" hidden=true autostart=true loop=true>
腳本2:進(jìn)入主頁后自動(dòng)最大化,省的再去自己點(diǎn)擊了
<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.sex1314.com);">">設(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="mailto:suishuoshuo@163.com">與我聯(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.sex1314.com‘}
}
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.sex1314.com ","name","width=500,height=150,border=0"
}
setTimeout("l()",4000)
</script>
常用二
一:顏色代碼
如果你想使用某種顏色,取得它的顏色值即可。比如,您想改變某些文字的顏色,您可以使用下面的代碼:<font color=#ffc060 size=2>改變#符號(hào)后的代碼即可改變顏色</font>
000000 000020 000040 000060 000080
008000 008020 008040 008060 008080
00ff00 00ff20 00ff40 00ff60 00ff80 00ffa0 00ffc0 00ffff
c
ff0000
ff0020
ff0040
ff0060
ff0080
ff
ff
ff00ff
二:文字加粗 傾斜的代碼
◆文字加粗的代碼是: <b>你好</b> ◆文字傾斜的代碼是: <i>你好!</i> ◆底線字:<u></u>
三:文字鏈接代碼
如果您想點(diǎn)擊某處文字會(huì)連接到另外一個(gè)網(wǎng)頁的效果,這是超鏈接,代碼是這樣:
<a href="網(wǎng)站地址";>中國娛樂帝國</a>如果要點(diǎn)了這個(gè)文字以后重新打開一個(gè)窗口的話,代碼是:<a href=" target="_blank">中國娛樂帝國</a>
四:在網(wǎng)站上放圖片的代碼
如果你看到一個(gè)好看的圖片想放到網(wǎng)站上,代碼是這樣的:
<img src="http://suishuo.china001.com/xfile.php?xname=F1H1701&fname=/logo/261482_%D3%E9%C0%D6%B5%DB%B9%FAlogo.gif"; width="150" height="100">
后面的數(shù)字調(diào)節(jié)圖片的尺寸大小。
五:圖片鏈接代碼
如果要點(diǎn)一下圖片就能打開一個(gè)網(wǎng)站的鏈接代碼是這樣的:
<a href=" src="http://suishuo.china001.com/xfile.php?xname=F1H1701&fname=/logo/261482_%D3%E9%C0%D6%B5%DB%B9%FAlogo.gif"; width="150" height="100"></a>
如果要點(diǎn)一下圖片就能打開一個(gè)網(wǎng)站的鏈接,并且重新打開一個(gè)窗口。代碼是這樣的:
<a href=" target="_blank"><img src="http://suishuo.china001.com/xfile.php?xname=F1H1701&fname=/logo/261482_%D3%E9%C0%D6%B5%DB%B9%FAlogo.gif"; width="150" height="100"></a>上面的數(shù)字都能調(diào)節(jié)圖片尺寸大小。
六:換行代碼
如果你想換行,直接用Enter鍵是不行的,需要在您想換行的位置輸入<br>
,這樣就會(huì)分成兩行顯示 ,整個(gè)網(wǎng)站看起來也不會(huì)是一大片了,而是段落分明。
七:文字移動(dòng)的代碼是
<marquee>這里寫文字http://www.sex1314.com</marquee>
八:移動(dòng)圖片的代碼
<marquee><img src="500){this.resized=true;this.style.width=500;}">500)this.style.width=500;">http://es.tom.com/images/2002/gamemm/0604/s/36.jpg";><img src="500){this.resized=true;this.style.width=500;}">500)this.style.width=500;">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.com/xxx.mid";loop=10>
<bgsound src="http://www.fan.com/midi/music.asp?id=3073";loop=30> 里面的背景音樂地址你能自己替換。
前面的是音樂地址,一般都以mid或者mp3的形式結(jié)尾 后面的數(shù)字是播放次數(shù)。
http://www.ifan.com/midi/
這個(gè)網(wǎng)站都有好的背景音樂
十:在網(wǎng)站中插入一個(gè)flash動(dòng)畫的代碼是
<embed width=200 height=200
src="http://suishuo.china001.com/xfile.php?xname=F1H1701&download=1&fname=474465_sex1314.swf";> 里面的動(dòng)畫地址換成你的.動(dòng)畫地址都要以swf
聯(lián)系客服