ASP绮惧崕浠g爜
ASP绮惧崕浠g爜
绮惧崕ASP浠g爜 -[PROGRAME_CODE]
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. 闃叉㈣浜篺rame
<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://http://www.zjjv.com///">
12. 鎬庢牱閫氳繃asp鐨勬墜娈垫潵妫鏌ユ潵璁胯呮槸鍚︾敤浜嗕唬鐞
<% if Request.ServerVariables("HTTP_X_FORWARDED_FOR")<>"" then
response.write "<font color=#FF0000>鎮ㄩ氳繃浜嗕唬鐞嗘湇鍔″櫒锛"& _
"鐪熷疄鐨処P涓"&Request.ServerVariables("HTTP_X_FORWARDED_FOR")
end if
%>
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. 鍒ゆ柇涓?椤电殑鏉ユ簮
asp:
request.servervariables("HTTP_REFERER")
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()>
鏈渚嬮傜敤浜嶪E
17.
<%
瀹氫箟鏁版嵁搴撹繛鎺ョ殑?浜涘父閲
Const adOpenForwardOnly = 0 娓告爣鍙鍚戝墠娴忚堣板綍锛屼笉鏀鎸佸垎椤点丷ecordset銆丅ookMark
Const adOpenKeyset = 1 閿闆嗘父鏍囷紝鍏朵粬鐢ㄦ埛瀵硅板綍璇村仛鐨勪慨鏀瑰皢鍙嶆槧鍒拌板綍闆嗕腑锛屼絾鍏朵粬鐢ㄦ埛
澧炲姞鎴栧垹闄よ板綍涓嶄細鍙嶆槧鍒拌板綍闆嗕腑銆傛敮鎸佸垎椤点丷ecordset銆丅ookMark
Const adOpenDynamic = 2 鍔ㄦ佹父鏍囧姛鑳芥渶寮猴紝浣嗚楄祫婧愪篃鏈澶氥傜敤鎴峰硅板綍璇村仛鐨勪慨鏀癸紝澧炲姞
鎴栧垹闄よ板綍閮藉皢鍙嶆槧鍒拌板綍闆嗕腑銆
鏀鎸佸叏鍔熻兘娴忚(ACCESS涓嶆敮鎸)銆
Const adOpenStatic = 3 闈欐佹父鏍囷紝鍙鏄鏁版嵁鐨?涓蹇鐓э紝鐢ㄦ埛瀵硅板綍璇村仛鐨勪慨鏀癸紝澧炲姞鎴栧垹闄よ
褰曢兘涓嶄細鍙嶆槧鍒拌板綍闆嗕腑銆傛敮鎸佸悜鍓嶆垨鍚戝悗绉诲姩
Const adLockReadOnly = 1 閿佸畾绫诲瀷锛岄粯璁ょ殑锛屽彧璇伙紝涓嶈兘浣滀换浣曚慨鏀
Const adLockPessimistic = 2 褰撶紪杈戞椂绔嬪嵆閿佸畾璁板綍锛屾渶瀹夊叏鐨勬柟寮
Const adLockOptimistic = 3 鍙鏈夊湪璋冪敤Update鏂规硶鏃舵墠閿佸畾璁板綍闆嗭紝鑰屽湪姝ゅ墠鐨勫叾浠栨搷浣滀粛鍙瀵
褰撳墠璁板綍杩涜屾洿鏀广佹彃鍏ュ拰鍒犻櫎绛
Const adLockBatchOptimistic = 4 褰撶紪杈戞椂璁板綍涓嶄細琚閿佸畾锛岃屾洿鏀广佹彃鍏ュ拰鍒犻櫎鏄鍦ㄦ壒澶勭悊鏂
寮忎笅瀹屾垚鐨
Const adCmdText = &H0001
Const adCmdTable = &H0002
%>
18. 缃戦〉涓嶄細琚缂撳瓨
HTM缃戦〉
<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">
ASP缃戦〉
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cach