如何防止你的网站不被复制 只要你在网页里加上这段java代码就可以实现了。
<script language="javascript"> window.ClearEvent=function() { event.cancelBubble=false; var sSrcTagName=event.srcElement.tagName.toLowerCase(); return (sSrcTagName=="textarea" || sSrcTagName=="input" || sSrcTagName=="select"); } window.ClearKey=function() { event.cancelBubble=false; var iKeyCode=event.keyCode; return !(iKeyCode==78 && event.ctrlKey); } with (window.document) { oncontextmenu=onselectstart=ondragstart=window.ClearEvent;onkeydown=window.ClearKey; } </script> 或者 防止网页被下载 在<BODY></BODY>之间加<noscript><iframe src="*.htm"></iframe></noscript> 1.将彻底屏蔽鼠标右键,无右键菜单 <body oncontextmenu="window.event.returnvalue=false"> 防止选取 在<BODY>里加onselectstart="return false" 防止剪切 oncut="return false;" 防止复制 oncopy="return false;" 防止粘贴 onpaste="return false" |
Music
Announcement
New Visitor
About/Statistics
用户名称:陈永勤 会员等级:普通会员 实时积分:1163 日志总数:57 评论数量:83 建立时间:2009年03月20日 |