window.onload = function() {
    //屏蔽键盘事件
    document.onkeydown = function() {
        var e = window.event || arguments[0];
        //F12
        if (e.keyCode == 123) {
            alert('抄袭可耻!!!');
            return false;
            //Ctrl+Shift+I
        } else if ((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)) {
            alert('抄袭可耻!!!');
            return false;
            //Shift+F10
        } else if ((e.shiftKey) && (e.keyCode == 121)) {
            alert('抄袭可耻!!!');
            return false;
            //Ctrl+U
        } else if ((e.ctrlKey) && (e.keyCode == 85)) {
            alert('抄袭可耻!!!');
            return false;
        }
    };
    //屏蔽鼠标右键
    document.oncontextmenu = function() {
        alert('抄袭可耻!!!');
        return false;
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2021-07-13
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-27
  • 2021-12-02
  • 2022-12-23
  • 2021-06-28
  • 2021-12-02
  • 2022-02-02
相关资源
相似解决方案