发现自己部落格的东西被别人盗用?
好,,现在我教你如何禁止右键~
到设计
按添加小工具
选择HTML/JavaScrip
<script language="JavaScript">
<!--
//Disable right mouse click Script
var message="输入文字";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
这样就行啦~~
没有评论:
发表评论