有朋友能帮忙写个屏蔽复制粘贴的JS么? 如题 求屏蔽复制粘贴的JS 还有防止被人frame的写了很久写不出好心人来帮帮忙么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.cnblogs.com/hyd309/archive/2009/07/03/1516173.html <%@ page language="java" import="java.util.*" pageEncoding="GBK"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>My JSP 'MyJsp.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> <script type="text/javascript"> document.oncontextmenu=function(){return false;}//屏蔽右键菜单document.onpaste=function(){return false;}//屏蔽粘贴document.oncopy=function(){return false;}//屏蔽复制document.oncut=function(){return false;}//屏蔽剪切document.onselectstart=function(){return false;}//屏蔽选择 </script> </head> <body > This is my JSP page. <br> </body></html>基于2楼网页,就是这样了。。 <head><script language="javascript" type="text/javascript">document.oncontextmenu=function(){return false;}//屏蔽右键菜单document.onpaste=function(){return false;}//屏蔽粘贴document.oncopy=function(){return false;}//屏蔽复制document.oncut=function(){return false;}//屏蔽剪切document.onselectstart=function(){return false;}//屏蔽选择 function a(){ alert("123123");}</script></head><html><div>asdfadfasdfasdf<br/>ddddddddddd<br/>123132132132132132132132123</div><a href="#" onclick="a()">aaa</a></html> 是屏蔽了鼠标右键 但是ctrl+c ctrl+v 还有ctrl+x还是可以用啊为什么啊 可以通过键盘事件来捕获,可以看一下event对象的一些操作(event.keyCode) 使用js截取字符串 如何让innerhtml保持换行? 用window.open打开的窗口在父窗口如何设置它获得focus 这段代码是啥意思? 关于WEB迅雷、优酷等网站的登陆画面 请大家帮忙给一个输入框验证函数,onkeyup时只允许输入数字和大小写字母 innerHTML奇怪的问题 事件绑定中的this指向问题 怎么把PDF放在自己制作的html静态页面上?谢谢!! 怎样用setTimeout定时关闭一个窗口后再打开另一个窗口?? 熟悉Dojo的达人,前来围观,谢谢!! 关于实现一个类似于密码输入框的功能
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'MyJsp.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
document.oncontextmenu=function(){return false;}//屏蔽右键菜单
document.onpaste=function(){return false;}//屏蔽粘贴
document.oncopy=function(){return false;}//屏蔽复制
document.oncut=function(){return false;}//屏蔽剪切
document.onselectstart=function(){return false;}//屏蔽选择
</script>
</head>
<body >
This is my JSP page. <br>
</body>
</html>基于2楼网页,就是这样了。。
<script language="javascript" type="text/javascript">document.oncontextmenu=function(){return false;}//屏蔽右键菜单
document.onpaste=function(){return false;}//屏蔽粘贴
document.oncopy=function(){return false;}//屏蔽复制
document.oncut=function(){return false;}//屏蔽剪切
document.onselectstart=function(){return false;}//屏蔽选择
function a()
{
alert("123123");
}
</script>
</head><html>
<div>
asdfadfasdfasdf
<br/>
ddddddddddd
<br/>
123132132132132132132132123
</div>
<a href="#" onclick="a()">aaa</a>
</html>
是屏蔽了鼠标右键 但是ctrl+c ctrl+v 还有ctrl+x还是可以用啊为什么啊