Sometimes you may require this type of code to Disable “Right Mouse button Click” for Your Blogger or Blogspot ,when you want to prevent your users or visitors to copy your copyright contents and images This code work wonderfuly and code activation procedure is also very easy.
· Please, copy this entire code.
<script language=javascript>
<!--
//Disable right mouse click Script
//By Being Geeks
//For full source code, visit http://www.picwit.com
var message="Function Disabled!";
///////////////////////////////////
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>
· Now Go to, Design > Page Elements >Add a Gadget > Add HTML/JavaScript
· Paste this coppied code into Content box
· Save
· Now View your Blogger Site