锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
鍒楀嚭浜涘父鐢ㄧ殑javascript錛屽ぇ瀹跺彲浠ユ妸榪欎簺鍋氭垚涓涓被錛屾柟渚垮湪欏圭洰涓噸澶嶇殑璋冪敤銆?/strong>
1錛庤鏂囧瓧涓嶅仠鍦版粴鍔?/strong>
銆銆<MARQUEE>婊氬姩鏂囧瓧</MARQUEE>
2錛庤褰曞茍鏄劇ず緗戦〉鐨勬渶鍚庝慨鏀規椂闂?/strong>
document錛巜rite("鏈鍚庢洿鏂版椂闂? " + document錛巐astModified + "")
3錛庡叧闂綋鍓嶇獥鍙?/strong>
銆銆<a href="/"onClick="javascript錛歸indow.close();return false;">鍏抽棴紿楀彛</a>
4錛?縐掑悗鍏抽棴褰撳墠欏?/strong>
銆銆<!-- 銆銆setTimeout(''window.close();'',5000); 銆銆-->
5錛?縐掑悗杞藉叆鎸囧畾緗戦〉
銆銆<head> 銆銆<meta http-equiv="refresh" content="2;URL=http://浣犵殑緗戝潃"> 銆銆</head>
6錛庢坊鍔犲埌鏀惰棌澶?/strong>
function bookmarkit() { 銆銆
window.external.addFavorite(''http://浣犵殑緗戝潃'',''浣犵殑緗戠珯鍚嶇О'') 銆銆
} 銆銆
if (document錛巃ll)
document錛巜rite(''<a href="#" onClick="bookmarkit()">鍔犲叆鏀惰棌澶?lt;/a>'')
7錛庤瓚呴摼鎺ヤ笉鏄劇ず涓嬪垝綰?
銆銆<style type="text/css"> 銆銆
<!- 銆銆a:link{text-decoration:none} 銆銆a:hover{text-decoration:none} 銆銆a:visited{text-decoration:none} 銆銆-> 銆銆
</style>
8錛庣姝㈤紶鏍囧彸閿殑鍔ㄤ綔
銆 function click() {
if (event.button==2||event.button==3) {
alert(''紱佹榧犳爣鍙抽敭''); 銆銆
}
document錛巓nmousedown=click // --> 銆銆
9錛庤緗欏典負棣栭〉
銆銆<body bgcolor="#FFFFFF" text="#000000"> 銆銆<!-- 緗戝潃錛歨ttp://浣犵殑緗戝潃-->
<a class="chlnk" style="cursor:hand" HREF 銆銆onClick="this.style.behavior=''url(#default#homepage)''; 銆銆this.setHomePage(''浣犵殑緗戠珯鍚嶇О);"><font color="000000" size="2" face="瀹嬩綋">璁句負棣栭〉</font></a> 銆銆
</body>
10錛庤妭鏃ュ掕鏃?
銆銆<Script Language="javascript"> 銆銆
var timedate= new Date("December 25,2003");
var times="鍦h癁鑺?;
var now = new Date();
var date = timedate.getTime() - now.getTime();
var time = Math.floor(date / (1000 * 60 * 60 * 24)); 銆銆
if (time >= 0) 銆銆
document錛巜rite("鐜板湪紱?+times+"榪樻湁: "+time +"澶?)
</Script>
11錛庡崟鍑繪寜閽墦鍗板嚭褰撳墠欏?/strong>
銆銆<Script Language="javascript"> 銆銆
<!-- Begin 銆銆if (window.print) { 銆銆document錛巜rite(''<form>'' 銆銆+ ''<input type=button name=print value="鎵撳嵃鏈〉" '' 銆銆+ ''onClick="javascript錛歸indow.print()"></form>''); 銆銆} 銆銆// End --> 銆銆
</Script>
12錛庡崟鍑繪寜閽?#8216;鍙﹀瓨涓?#8217;褰撳墠欏?/strong>
銆銆<input type="button" name="Button" value="淇濆瓨鏈〉" 銆銆onClick="document錛巃ll.button.ExecWB(4,1)">
<object id="button" 銆銆width=0 銆銆height=0 銆銆classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"> 銆銆<embed width="0" height="0"></embed> 銆銆</object>
13錛庢樉紺虹郴緇熷綋鍓嶆棩鏈?/strong>
銆銆<script language=javascript>
today=new Date();
function date(){
銆銆 this.length=date.arguments.length
銆銆 for(var i=0;i<this.length;i++)
銆銆 this[i+1]=date.arguments
}
銆銆var d=new date("鏄熸湡鏃?,"鏄熸湡涓","鏄熸湡浜?,"鏄熸湡涓?,"鏄熸湡鍥?,"鏄熸湡浜?,"鏄熸湡鍏?);
銆銆document錛巜rite( 銆銆"<font color=##000000 style=''font-size:9pt;font-family: 瀹嬩綋''> ",
銆銆today.getYear(),"騫?,today.getMonth()+1,"鏈?,today.getDate(),"鏃?,
銆銆d[today.getDay()+1],"</font>" ); 銆銆</script>
14錛庝笉鍚屾椂闂存鏄劇ず涓嶅悓闂欒
銆銆<Script Language="javascript">
銆銆<!-- 銆銆var text=""; day = new Date( ); time = day.getHours( );
銆銆if (( time>=0) && (time < 7 ))
銆銆銆銆text="澶滅尗瀛愶紝瑕佹敞鎰忚韓浣撳摝錛?"
銆銆if (( time >= 7 ) && (time < 12))
銆銆銆銆text="浠婂ぉ澶╂皵……鍝堝搱鍝堬紝涓嶅幓鐜╁悧錛?
銆銆if (( time >= 12) && (time < 14))
銆銆銆銆text="鍗堜紤鏃墮棿鍝︼紝鏈嬪弸涓瀹氭槸涓嶄範鎯崍鐫$殑鍚э紵錛?
銆銆if (( time >=14) && (time < 18))
銆銆銆銆text="涓嬪崍鑼剁殑鏃墮棿鍒頒簡錛屼紤鎭竴涓嬪惂錛?"
銆銆if ((time >= 18) && (time <= 22))
銆銆銆銆text="鎮ㄥ張鏉ヤ簡錛屽彲鍒拰MM鑱婂お涔呭摝錛?
銆銆if ((time >= 22) && (time < 24))
銆銆銆銆text="寰堟櫄浜嗗摝錛屾敞鎰忎紤鎭憖錛?
銆銆document錛巜rite(text) 銆銆//--->
銆銆</Script>
15錛庢按涓掑獎鏁堟灉
銆銆<img id="reflect" src="浣犺嚜宸辯殑鍥劇墖鏂囦歡鍚? width="175" height="59">
銆銆<script language="javascript">
銆銆function f1() 銆銆{
銆銆銆銆setInterval("mdiv.filters.wave.phase+=10",100); 銆銆}
銆銆if (document錛巃ll) 銆銆{
銆銆銆銆document錛巜rite(''<img id=mdiv src="''+document錛巃ll.reflect.src+''"
銆銆銆銆style="filter:wave(strength=3,freq=3,phase=0,lightstrength=30) blur() flipv()">'')
銆銆銆銆window.onload=f1
銆銆}
銆銆</script>
16錛庢參鎱㈠彉澶х殑紿楀彛
銆銆<Script Language="javascript">
銆銆<!-- 銆銆var Windowsheight=100
銆銆var Windowswidth=100
銆銆var numx=5
銆銆function openwindow(thelocation){
銆銆temploc=thelocation
銆銆if 銆銆(!(window.resizeTo&&document錛巃ll)&&!(window.resizeTo&&document錛巊etElementById)) 銆銆{
銆銆銆銆window.open(thelocation)
銆銆銆銆return 銆銆}
銆銆windowsize=window.open("","","scrollbars")
銆銆windowsize.moveTo(0,0)
銆銆windowsize.resizeTo(100,100)
銆銆tenumxt() 銆銆}
銆銆function tenumxt(){
銆銆if (Windowsheight>=screen.availHeight-3)
銆銆銆銆numx=0
銆銆windowsize.resizeBy(5,numx)
銆銆Windowsheight+=5
銆銆Windowswidth+=5
銆銆if (Windowswidth>=screen.width-5) 銆銆{
銆銆銆銆windowsize.location=temploc
銆銆銆銆Windowsheight=100
銆銆銆銆Windowswidth=100
銆銆銆銆numx=5
銆銆銆銆return
銆銆}
銆銆setTimeout("tenumxt()",50)
銆銆}
銆銆//-->
銆銆</script>
銆銆<p><a href="javascript錛歰penwindow( http://www.xxx.com )">榪涘叆</a>
17錛庢敼鍙業E鍦板潃鏍忕殑IE鍥炬爣
銆銆鎴戜滑瑕佸厛鍋氫竴涓?6*16鐨刬con錛堝浘鏍囨枃浠訛級錛屼繚瀛樹負index.ico銆傛妸榪欎釜鍥炬爣鏂囦歡涓婁紶鍒版牴鐩綍涓嬪茍鍦ㄩ欏?lt;head></head>涔嬮棿鍔犱笂濡備笅浠g爜錛?nbsp; <link REL = "Shortcut Icon" href="/index.ico">
杞澆鑷細 microtea鐨勫皬灞?/font> 甯哥敤javascript