日期:2014-05-17 浏览次数:20822 次
1.不准粘贴 
onpaste="return?false" 
2.防止复制 
oncopy="return?false;"?oncut="return?false;" 
3.IE地址栏前换成自己的图标 
<link?rel="Shortcut?Icon"?href="favicon.ico"> 
4.可以在收藏夹中显示出你的图标 
<link?rel="Bookmark"?href="favicon.ico"> 
5.关闭输入法<input?style="ime-mode:disabled"> 
6.?永远都会带着框架? 
<script?language="javascript"><!--? 
if?(window?==?top)top.location.href?=?"frames.htm";?//frames.htm为框架网页? 
//?--></script> 
7.?防止被人frame? 
<SCRIPT?LANGUAGE=javascript><!--? 
if?(top.location?!=?self.location)top.location=self.location;? 
//?--></SCRIPT> 
8.?网页不会被缓存 
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-cache"? 
PHP网页? 
header("Expires:?Mon,?26?Jul?1997?05:00:00?GMT");? 
header("Cache-Control:?no-cache,?must-revalidate");? 
header("Pragma:?no-cache");? 
9.?检查一段字符串是否全由数字组成? 
<script?language="javascript"><!--? 
function?checkNum(str){return?str.match(/\D/)==null}? 
alert(checkNum("1232142141"))? 
alert(checkNum("123214214a1"))? 
//?--></script> 
9.TEXTAREA自适应文字行数的多少? 
<textarea?rows=1?name=s1?cols=27?onpropertychange="this.style.posHeight=this.scrollHeight">? 
</textarea> 
10.?各种样式的光标? 
auto?:标准光标? 
default?:标准箭头? 
hand?:手形光标? 
wait?:等待光标? 
text?:I形光标? 
vertical-text?:水平I形光标? 
no-drop?:不可拖动光标? 
not-allowed?:无效光标? 
help?:?帮助光标? 
all-scroll?:三角方向标? 
move?:移动标? 
crosshair?:十字标?