<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<meta name="Keywords" content="">
<meta name="Description" content="">
<script>
$(document).ready(function() {
// 禁止右键
$(document).bind("contextmenu", function(){return false;});
// 禁止选择
$(document).bind("selectstart", function(){return false;});
// 禁止Ctrl+C 和Ctrl+A
$(document).keydown(function(event) {
if ((event.ctrlKey&&event.which==67) || (event.ctrlKey&&event.which==86))
{
//alert("对不起,版权所有,禁止复制");
return false;
}
});
});
</script>
</head>
<body>
</body>
</html>
web屏蔽右键
最新推荐文章于 2020-10-10 11:51:11 发布