日期:2014-05-16  浏览次数:20374 次

javascript代码大全(二)

17.屏蔽功能键Shift,Alt,Ctrl?

<!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><script>?
function?look(){??
if(event.shiftKey)??
alert(
"禁止按Shift键!";?//可以换成ALT?CTRL?
}??
document.onkeydown
=look;??
</script>


18.?网页不会被缓存?

<!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><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.怎样让表单没有凹凸感??
?

<!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><input?type=text?style="b