网页禁止复制代码 - 11 March 2009 - Blog - ystyle paltform
Home » 2009 » March » 11 » 网页禁止复制代码
11:40 AM
网页禁止复制代码
网页禁止复制代码 
 
禁止你的左键复制----  禁止右键点击
      <s cript language=javas cript>
      function click() {
      alert('禁止你的左键复制!') }
      function click1() {
      if (event.button==2) {alert('禁止右键点击~!') }}
      function CtrlKeyDown(){
      if (event.ctrlKey) {alert('不当的拷贝将损害您的系统!') }}
      document.onkeydown=CtrlKeyDown;
      document.onselectstart=click;
      document.onmousedown=click1;
      </s cript> 
 
 
效果内容
 
主题
禁止鼠标右键代码
Views: 452 | Added by: ystyle | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Sign Up | Log In ]