Disable Right Click On Your Blog or Website
Are you Sick of COPY CATS , Who copy your content Specially Images from your Blog or website and use them in there websites and blog posts ??Do Not Worry Because I got the Perfect Solution for You.
Now You can Disable Right Click On Your Blog or Website so that NO ONE CAN COPY any CONTENT or DOWNLOAD ANY IMAGE from your blog.
So lets get started.
1. Goto Your Blogger Dashboard and Navigate to Layout ,
2. Now Click ADD GADGET anywhere
3. Select Html/Javascript
4. Now Put the following code
<script language="JavaScript">
<!--
//Disable right mouse click Script
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>
5. Click Save and You are DONE
Note:
This script will show Function Disabled when somebody right clicks on your blog,
If you want to change the text , Just edit the RED TEXT in above code.



0 comments:
Post a Comment