能在html网页中进行“禁止复制网页”设置吗?(高分在线等)

来源:百度知道 编辑:UC知道 时间:2024/06/04 17:09:41
不想让别人复制,可否通过添加什么代码,禁止别人在我的网页复制或禁用右键,哪位高手指点一下。

用JAVA禁止复制网页内容<Script Language=javascript>
function key(){
//if(event.shiftKey){
//window.close();}
//禁止shift
if(event.altKey){
alert('禁止CTRL-C复制本贴内容');}
//禁止alt
if(event.ctrlKey){
alert('禁止CTRL-C复制本贴内容');}
//禁止ctrl
return false;}
document.onkeydown=key;
if (window.Event)
document.captureEvents(Event.MOUSEUP);
//swordmaple javascript article.
//from www.XXXX.com
//function nocontextmenu(){
//event.cancelBubble = true
//event.returnValue = false;
//return false;}
function norightclick(e){
if (window.Event){
if (e.which == 2 || e.which == 3)
return false;}
else
if (event.button == 2 || event.button == 3){
event.cancelBubble = true
event.returnValue = false;
return false;}
}
function Click(){
alert('