1¡¢oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2¡¢<body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3¡¢onpaste="return false" ²»×¼Õ³Ìù
4¡¢oncopy="return false;" oncut="return false;" ·ÀÖ¹¸´ÖÆ
5¡¢<link rel="Shortcut Icon" href="favicon.ico"> IEµØÖ·À¸Ç°»»³É×Ô¼ºµÄͼ±ê
6¡¢<link rel="Bookmark" href="favicon.ico"> ¿ÉÒÔÔÚÊղؼÐÖÐÏÔʾ³öÄãµÄͼ±ê
7¡¢<input style="ime-mode:disabled"> ¹Ø±ÕÊäÈë·¨
8¡¢ÓÀÔ¶¶¼»á´ø×Å¿ò¼Ü
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <script language="JavaScript"><!-- if (window == top)top.location.href = "frames.htm"; //frames.htmΪ¿ò¼ÜÍøÒ³ // --></script> |
9¡¢·ÀÖ¹±»ÈËframe
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <SCRIPT LANGUAGE=JAVASCRIPT><!-- if (top.location != self.location)top.location=self.location; // --></SCRIPT> |
10¡¢ÍøÒ³½«²»Äܱ»Áí´æÎª
<noscript><iframe src=*.html></iframe></noscript>
11¡¢<input type=button value=²é¿´ÍøÒ³Ô´´úÂë
onclick="window.location = 'view-source:'+ 'http://www.webjx.com/'">
12¡¢É¾³ýʱȷÈÏ
<a href='javascript:if(confirm("ȷʵҪɾ³ýÂð?"))location="boos.asp?&areyou=ɾ³ý&page=1"'>ɾ³ý</a>
13¡¢È¡µÃ¿Ø¼þµÄ¾ø¶ÔλÖÃ
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º //Javascript <script language="Javascript"> function getIE(e){ var t=e.offsetTop; var l=e.offsetLeft; while(e=e.offsetParent){ t+=e.offsetTop; l+=e.offsetLeft; } alert("top="+t+"/nleft="+l); } </script> //VBScript <script language="VBScript"><!-- function getIE() dim t,l,a,b set a=document.all.img1 t=document.all.img1.offsetTop l=document.all.img1.offsetLeft while a.tagName<>"BODY" set a = a.offsetParent t=t+a.offsetTop l=l+a.offsetLeft wend msgbox "top="&t&chr(13)&"left="&l,64,"µÃµ½¿Ø¼þµÄλÖÃ" end function --></script> |
14¡¢¹â±êÊÇÍ£ÔÚÎı¾¿òÎÄ×ÖµÄ×îºó
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <script language="javascript"> function cc() { var e = event.srcElement; var r =e.createTextRange(); r.moveStart('character',e.value.length); r.collapse(true); r.select(); } </script> <input type=text name=text1 value="123" onfocus="cc()"> |
15¡¢ÅжÏÉÏÒ»Ò³µÄÀ´Ô´
javascript:document.referrer
16¡¢×îС»¯¡¢×î´ó»¯¡¢¹Ø±Õ´°¿Ú
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <object id=hh1 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"> <param name="Command" value="Minimize"></object> <object id=hh2 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"> <param name="Command" value="Maximize"></object> <OBJECT id=hh3 classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> <PARAM NAME="Command" VALUE="Close"></OBJECT> <input type=button value=×îС»¯ onclick=hh1.Click()> <input type=button value=×î´ó»¯ onclick=hh2.Click()> <input type=button value=¹Ø±Õ onclick=hh3.Click()> |
±¾ÀýÊÊÓÃÓÚIE
17¡¢ÆÁ±Î¹¦ÄܼüShift,Alt,Ctrl
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <script> function look(){ if(event.shiftKey) alert("½ûÖ¹°´Shift¼ü!"); //¿ÉÒÔ»»³ÉALT¡¡CTRL } document.onkeydown=look; </script> |
18¡¢ÍøÒ³²»»á±»»º´æ
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <META HTTP-EQUIV="pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> »òÕß<META HTTP-EQUIV="expires" CONTENT="0"> |
19¡¢ÔõÑùÈÃ±íµ¥Ã»Óа¼Í¹¸Ð£¿
<input type=text style="border:1 solid #000000">
»ò
<input type=text style="border-left:none; border-right:none; border-top:none; border-bottom: 1 solid #000000"></textarea>
20¡¢<div><span>&<layer>µÄÇø±ð£¿
<div>(division)ÓÃÀ´¶¨Òå´ó¶ÎµÄÒ³ÃæÔªËØ£¬»á²úÉúתÐÐ
<span>ÓÃÀ´¶¨ÒåͬһÐÐÄÚµÄÔªËØ£¬¸ú<div>µÄÎ¨Ò»Çø±ðÊDz»²úÉúתÐÐ
<layer>ÊÇnsµÄ±ê¼Ç£¬ie²»Ö§³Ö£¬Ï൱ÓÚ<div>
21¡¢Èõ¯³ö´°¿Ú×ÜÊÇÔÚ×îÉÏÃæ£º
<body onblur="this.focus();">
22¡¢²»Òª¹ö¶¯Ìõ£¿
ÈÃÊúÌõûÓУº
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <body style='overflow:scroll;overflow-y:hidden'> </body> |
ÈúáÌõûÓУº
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <body style='overflow:scroll;overflow-x:hidden'> </body> |
Á½¸ö¶¼È¥µô£¿¸ü¼òµ¥ÁË
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <body scroll="no"> </body> |
23¡¢ÔõÑùÈ¥µôͼƬÁ´½Óµã»÷ºó£¬Í¼Æ¬ÖÜΧµÄÐéÏߣ¿
<a href="#" onFocus="this.blur()"><img src="logo.jpg" border=0></a>
24¡¢µç×ÓÓʼþ´¦ÀíÌá½»±íµ¥
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <form name="form1" method="post" action="mailt****@***.com" enctype="text/plain"> <input type=submit> </form> |
25¡¢ÔÚ´ò¿ªµÄ×Ó´°¿Úˢи¸´°¿ÚµÄ´úÂëÀïÈçºÎд£¿
window.opener.location.reload()
26¡¢ÈçºÎÉ趨´ò¿ªÒ³ÃæµÄ´óС
<body onload="top.resizeTo(300,200);">
´ò¿ªÒ³ÃæµÄλÖÃ<body onload="top.moveBy(300,200);">
27¡¢ÔÚÒ³ÃæÖÐÈçºÎ¼ÓÈë²»ÊÇÂúÆÌµÄ±³¾°Í¼Æ¬,À¶¯Ò³ÃæÊ±±³¾°Í¼²»¶¯
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <STYLE> body {background-image:url(logo.gif); background-repeat:no-repeat; background-position:center;background-attachment: fixed} </STYLE> |
28¡¢¼ì²éÒ»¶Î×Ö·û´®ÊÇ·ñÈ«ÓÉÊý×Ö×é³É
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <script language="Javascript"><!-- function checkNum(str){return str.match(//D/)==null} alert(checkNum("1232142141")) alert(checkNum("123214214a1")) // --></script> |
29¡¢»ñµÃÒ»¸ö´°¿ÚµÄ´óС
document.body.clientWidth; document.body.clientHeight
30¡¢ÔõôÅжÏÊÇ·ñÊÇ×Ö·û
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º if (/[^/x00-/xff]/g.test(s)) alert("º¬Óкº×Ö"); else alert("È«ÊÇ×Ö·û"); |
31¡¢TEXTAREA×ÔÊÊÓ¦ÎÄ×ÖÐÐÊýµÄ¶àÉÙ
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <textarea rows=1 name=s1 cols=27 onpropertychange="this.style.posHeight=this.scrollHeight"> </textarea> |
32¡¢ÈÕÆÚ¼õÈ¥ÌìÊýµÈÓÚµÚ¶þ¸öÈÕÆÚ
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <script language=Javascript> function cc(dd,dadd) { //¿ÉÒÔ¼ÓÉÏ´íÎó´¦Àí var a = new Date(dd) a = a.valueOf() a = a - dadd * 24 * 60 * 60 * 1000 a = new Date(a) alert(a.getFullYear() + "Äê" + (a.getMonth() + 1) + "ÔÂ" + a.getDate() + "ÈÕ") } cc("12/23/2002",2) </script> |
33¡¢Ñ¡ÔñÁËÄÄÒ»¸öRadio
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <HTML><script language="vbscript"> function checkme() for each ob in radio1 if ob.checked then window.alert ob.value next end function </script><BODY> <INPUT name="radio1" type="radio" value="style" checked>Style <INPUT name="radio1" type="radio" value="barcode">Barcode <INPUT type="button" value="check" onclick="checkme()"> </BODY></HTML> |
34¡¢½Å±¾ÓÀ²»³ö´í
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <SCRIPT LANGUAGE="JavaScript"> <!-- Hide function killErrors() { return true; } window.onerror = killErrors; // --> </SCRIPT> |
35¡¢ENTER¼ü¿ÉÒÔÈùâ±êÒÆµ½ÏÂÒ»¸öÊäÈë¿ò
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
36¡¢¼ì²âij¸öÍøÕ¾µÄÁ´½ÓËÙ¶È£º
°ÑÈçÏ´úÂë¼ÓÈë<body>ÇøÓòÖУº
| ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º <script language=Javascript> tim=1 setInterval("tim++",100) var autourl=new Array() autourl[1]="www.njcatv.net" autourl[2]=www.webjx.com autourl[3]="www.sina.com.cn" autourl[4]="www.nuaa.edu.cn" autourl[5]="www.cctv.com" function butt(){ document.write("<form name=autof>") for(var i=1;i<autourl.length;i++) document.write("<input type=text name=txt"+i+" size=10 value=²âÊÔÖÐ……> =¡·<input type=text name=url"+i+" size=40> =¡·<input type=button value=GO onclick=window.open(this.form.url"+i+".value)><br>") document.write("<input type=submit value=Ë¢ÐÂ></form>") } butt() function auto(url){ document.forms[0]["url"+b].value=url if(tim>200) {document.forms[0]["txt"+b].value="Á´½Ó³¬Ê±"} else {document.forms[0]["txt"+b].value="ʱ¼ä"+tim/10+"Ãë"} b++ } function run(){for(var i=1;i<autourl.length;i++)document.write("<img src=http://"+autourl+"/"+Math.random()+" width=1 height=1 onerror=auto('http://"+autourl+"')>")} run()</script> |
37¡¢¸÷ÖÖÑùʽµÄ¹â±ê
auto £º±ê×¼¹â±ê
default £º±ê×¼¼ýÍ·
hand £ºÊÖÐιâ±ê
wait £ºµÈ´ý¹â±ê
text £ºIÐιâ±ê
vertical-text £ºË®Æ½IÐιâ±ê
no-drop £º²»¿ÉÍ϶¯¹â±ê
not-allowed £ºÎÞЧ¹â±ê
help £º?°ïÖú¹â±ê
all-scroll £ºÈý½Ç·½Ïò±ê
move £ºÒƶ¯±ê
crosshair £ºÊ®×Ö±ê
e-resize
n-resize
nw-resize
w-resize
s-resize
se-resize
sw-resize
38¡¢Ò³Ãæ½øÈëºÍÍ˳öµÄÌØÐ§
½øÈëÒ³Ãæ<meta http-equiv="Page-Enter" content="revealTrans(duration=x, transition=y)">
ÍÆ³öÒ³Ãæ<meta http-equiv="Page-Exit" content="revealTrans(duration=x, transition=y)">
Õâ¸öÊÇÒ³Ãæ±»ÔØÈëºÍµ÷³öʱµÄÒ»Ð©ÌØÐ§¡£duration±íÊ¾ÌØÐ§µÄ³ÖÐøÊ±¼ä£¬ÒÔÃëΪµ¥Î»¡£transition±íʾʹ
ÓÃÄÄÖÖÌØÐ§£¬È¡ÖµÎª1-23£º
0 ¾ØÐÎËõС
1 ¾ØÐÎÀ©´ó
2 Ô²ÐÎËõС
3 Ô²ÐÎÀ©´ó
4 ϵ½ÉÏË¢ÐÂ
5 Éϵ½ÏÂË¢ÐÂ
6 ×óµ½ÓÒË¢ÐÂ
7 ÓÒµ½×óË¢ÐÂ
8 Êú°ÙÒ¶´°
9 ºá°ÙÒ¶´°
10 ´íλºá°ÙÒ¶´°
11 ´íλÊú°ÙÒ¶´°
12 µãÀ©É¢
13 ×óÓÒµ½ÖмäË¢ÐÂ
14 Öм䵽×óÓÒË¢ÐÂ
15 Öм䵽ÉÏÏÂ
16 ÉÏϵ½Öмä
17 ÓÒϵ½×óÉÏ
18 ÓÒÉϵ½×óÏÂ
19 ×óÉϵ½ÓÒÏÂ
20 ×óϵ½ÓÒÉÏ
21 ºáÌõ
22 ÊúÌõ
23 ÒÔÉÏ22ÖÖËæ»úÑ¡ÔñÒ»ÖÖ
39¡¢Ôڹ涨ʱ¼äÄÚÌø×ª
<META http-equiv=V="REFRESH" content="5;URL=http://www.webjx.com">
40¡¢ÍøÒ³ÊÇ·ñ±»¼ìË÷
<meta name="ROBOTS" content="ÊôÐÔÖµ">
ÆäÖÐÊôÐÔÖµÓÐÒÔÏÂһЩ£º
ÊôÐÔֵΪ"all": Îļþ½«±»¼ìË÷£¬ÇÒÒ³ÉÏÁ´½Ó¿É±»²éѯ£»
ÊôÐÔֵΪ"none": Îļþ²»±»¼ìË÷£¬¶øÇÒ²»²éѯҳÉϵÄÁ´½Ó£»
ÊôÐÔֵΪ"index": Îļþ½«±»¼ìË÷£»
ÊôÐÔֵΪ"follow": ²éѯҳÉϵÄÁ´½Ó£»
ÊôÐÔֵΪ"noindex": Îļþ²»¼ìË÷£¬µ«¿É±»²éѯÁ´½Ó£»
ÊôÐÔֵΪ"nofollow": Îļþ²»±»¼ìË÷£¬µ«¿É²éѯҳÉϵÄÁ´½Ó¡£


