首頁 >web前端 >js教程 >alixixi runcode.asp的代码不错的应用_javascript技巧

alixixi runcode.asp的代码不错的应用_javascript技巧

WBOY
WBOY原創
2016-05-16 19:10:32892瀏覽

nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">







<script> <BR>function click(e) { <BR>   if (document.all) { <BR>   if (event.button==1||event.button==2||event.button==3) { <BR>    oncontextmenu='return false'; <BR>   } <BR>   } <BR>   if (document.layers) { <BR>   if (e.which == 3) { <BR>    oncontextmenu='return false'; <BR>   } <BR>   } <BR>  } <BR>  if (document.layers) { <BR>   document.captureEvents(Event.MOUSEDOWN); <BR>  } <BR>  document.onmousedown=click; <BR>  document.oncontextmenu = new Function("return false;") <br><br>  var travel=true <BR>  var hotkey=17  /* hotkey即为热键的键值,是ASII码,这里99代表c键 */ <BR>  if (document.layers) <BR>  document.captureEvents(Event.KEYDOWN) <BR>  function gogo(e) <BR>  { if (document.layers) { <BR>  if (e.which==hotkey&&travel){ <BR>   //alert("操作错误.或许是您按错了按键!"); <BR>} } <BR>  else if (document.all){ <BR>  if (event.keyCode==hotkey&&travel){ <BR>//alert("操作错误.或许是您按错了按键!"); <BR>}} <BR>  } <br><br>document.onkeydown=gogo <BR></script>

<script></script>
欢迎光临脚本之家网页脚本特效中心,点击运行按钮演示特效:


 
<script> <BR><!-- <br><br>var copytoclip=1 <br><br>function HighlightAll(theField) { <BR>var tempval=eval("document."+theField) <BR>tempval.focus() <BR>tempval.select() <BR>if (document.all && copytoclip==1){ <BR>therange=tempval.createTextRange() <BR>therange.execCommand("Copy") <BR>window.status="Contents highlighted and copied to clipboard!" <BR>setTimeout("window.status=''",1800) <BR>} <BR>} <BR>//--> <BR></script>


欢迎访问脚本之家网页特效集
     [提示:Ctrl+A 全部选择,可先修改部分代码后运行]



陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn