Sometimes websites have a security feature in place that protects the text of the website to prevent users from stealing site content. So that some web sites do not allow their visitors using right mouse click while pointer is on the blog area. This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts. They have valuable information and people try to steal and republish their content frequently. That is, of course, quite illegal and a violation of international copyright law. And you may want to make click right disabled on your blog. to protect you text, images links and etc.
S0 to setup thisfunction in your blog Copy the Following code and paste it to your blog by adding a new page element.
First Go to Dashboard > Layout > Add Gadget > HTML / JavaScript.then Copy the following code and paste it in that blogger widget. and Save the html/javascript and view you blog..
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By kishor kc
//For full source code, visit http://kishorkc.blogspot.com
var message="Function Disabled! not allowed to copy ";
///////////////////////////////////
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>
S0 to setup thisfunction in your blog Copy the Following code and paste it to your blog by adding a new page element.
First Go to Dashboard > Layout > Add Gadget > HTML / JavaScript.then Copy the following code and paste it in that blogger widget. and Save the html/javascript and view you blog..
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By kishor kc
//For full source code, visit http://kishorkc.blogspot.com
var message="Function Disabled! not allowed to copy ";
///////////////////////////////////
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>
Comments
Post a Comment