JavaScriptはIE操作の古典コードに対して(推奨)
1.
oncontextmenu="window.event.returnvalue=false"
Tableno
2. 、
3.
onpaste="returnfalse"
4.
oncopy="returnfalse;"
oncut="returnfalse;"
5.IE
6.
7.
8.
9. frame
10.
11.
12. asp
""then
response.write" ,"&_
" IP "&Request.ServerVariables("HTTP_X_FORWARDED_FOR")
endif
%>
13.
//javascript
functiongetIE(e)...{
vart=e.offsetTop;
varl=e.offsetLeft;
while(e=e.offsetParent)...{
t+=e.offsetTop;
l+=e.offsetLeft;
}
alert("top="+t+" left="+l);
}
//VBScript
14.
functioncc()
...{
vare=event.srcElement;
varr=e.createTextRange();
r.moveStart('character',e.value.length);
r.collapse(true);
r.select();
}
15.
asp:
request.servervariables("HTTP_REFERER")
javascript:
document.referrer
16. 、 、
IE
17.
'
ConstadOpenForwardOnly=0' , 、Recordset、BookMark
ConstadOpenKeyset=1' , , 。 、Recordset、BookMark
ConstadOpenDynamic=2' , 。 , 。 (ACCESS )。
ConstadOpenStatic=3' , , , 。
ConstadLockReadOnly=1' , , ,
ConstadLockPessimistic=2' ,
ConstadLockOptimistic=3' Update , 、
ConstadLockBatchOptimistic=4' , 、
ConstadCmdText=&H0001
ConstadCmdTable=&H0002
%>
18.
HTM
ASP
Response.Expires=-1
Response.ExpiresAbsolute=Now()-1
Response.cachecontrol="no-cache"
PHP
header("Expires:Mon,26Jul199705:00:00GMT");
header("Cache-Control:no-cache,must-revalidate");
header("Pragma:no-cache");
19.
20.
document.body.clientWidth,document.body.clientHeight
21.
if(/[^�-ÿ]/g.test(s))alert(" ");
elsealert(" ");
22.TEXTAREA
23.
functioncc(dd,dadd)
{
//
vara=newDate(dd)
a=a.valueOf()
a=a-dadd*24*60*60*1000
a=newDate(a)
alert(a.getFullYear()+" "+(a.getMonth()+1)+" "+a.getDate()+" ")
}
cc("12/23/2002",2)
24. Radio
functioncheckme()
foreachobinradio1
ifob.checkedthenwindow.alertob.value
next
endfunction
Style
Barcode
25. url request.servervariables("")
Response.Write"Variablesvalue"
foreachobinRequest.ServerVariables
Response.Write""&ob&""&Request.ServerVariables(ob)&""
next
Response.Write""
26.
ip
IP
IIS
CPU
27.ENTER
28. :
:
tim=1
setInterval("tim++",100)
b=1
varautourl=newArray()
autourl[1]="< src="pic/url.gif" align=absMiddle border=0>www.njcatv.net"
autourl[2]="javacool.3322.net"
autourl[3]="< src="pic/url.gif" align=absMiddle border=0>www.sina.com.cn"
autourl[4]="www.nuaa.edu.cn"
autourl[5]="< src="pic/url.gif" align=absMiddle border=0>www.cctv.com"
functionbutt(){
document.write("")
for(vari=1;idocument.write("=》=》
")
document.write("")
}
butt()
functionauto(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++
}
functionrun(){for(vari=1;ihttp://";+autourl[i]+"')>")}
run()
29.
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
1. ,
response.expires=0
response.addHeader"pragma","no-cache"
response.addHeader"cache-control","private"
2. contentType gif
functiondl(f,n)
onerrorresumenext
sets=CreateObject("Adodb.Stream")
S.Mode=3
S.Type=1
S.Open
s.LoadFromFile(server.mappath(f))
iferr.number>0then
response.writeerr.number&":"&err.description
else
response.contentType="application/x-gzip"
response.addheader"Content-Disposition:","attachment;filename="&n
response.binarywrite(s.Read(s.size))
endif
endfunction
calldl("012922501.gif","t1.gif")
%>
19.
20.
document.body.clientWidth,document.body.clientHeight
document.body.offsetWidth,document.body.offsetHeight
window.screenTop,window.screenLeft
21.
if(escape(str).indexOf("%u")!=-1)alert(" ");
elsealert(" ");
22.TEXTAREA
IE5.5+ overflow-y:visible
23.
function cc(dd,dadd)
...{
//
vard=newDate(dd.replace("-","/"))
d.setDate(d.getDate()+dadd)
alert(d.getFullYear()+" "+(d.getMonth()+1)+" "+d.getDate()+" ")
}
cc("2002-2-28",2)