1.獲得系統(tǒng)時(shí)間:
<%=now()%>
2.取得來訪用的IP:
<%=request.serverVariables("remote_host")%>
3.獲得系統(tǒng),瀏覽器版本:
<script>
window.document.write("版本:"+navigator.appName+navigator.appVersion+" browser.")
</script>
4.去除IE滾動(dòng)條:
<body scroll="no">
<body style="overflow-y:hidden">
5.進(jìn)入網(wǎng)站,跳出廣告:
<script language="javascript">
<!--
<!-- 注意更改文件所在路徑-->
window.open(''http://www.XXXXXX.com'','''',''height=200,width=300,top=0,left=30'');
// -->
</script>
6.隨機(jī)數(shù):
<%randomize%>
<%=(int(rnd()*n)+1)%>
N為可改變數(shù)
7.向上混動(dòng)代碼:
<marquee direction="up" scrolldelay="200" style="font-size: 9pt; color: #FF0000;
line-height: 150%; font-style:italic; font-weight:bold" scrollamount="2" width="206"
height="207" bgcolor="#FFFF00">hhhhhhhhhhhhhhhhhhh</marquee>
8.自動(dòng)關(guān)閉網(wǎng)頁:
<script LANGUAGE="javascript">
<!--
setTimeout(''window.close();'', 10000); //60秒后關(guān)閉
// -->
</script>
<p align="center">本頁10秒后自動(dòng)關(guān)閉,請(qǐng)注意刷新頁面</p>
9.隨機(jī)背景音樂:
<%randomize%>
<bgsound src="mids/<%=(int(rnd()*60)+1)%>.mid" loop="-1">
可以修改數(shù)字,限制調(diào)用個(gè)數(shù),我這里是60個(gè).
【 微信掃一掃 】