Saturday, August 22, 2009

Disable Right Click on your Blog

Are you terrified that the unique content and those amazing graphics or pictures on your blog will be copied? Don’t panic! :) You can disable the right click on your blog and protect the contents and images on your blog! Cool. Actually it is a widget and it is so very easy to install!
Just follow these simple steps:

Step 1:
Go to Template -> Page Elements.
Step 2 :
Add a Page Element -> then Add a HTML
tep 3 :
Now just copy and save the following code into Html

<script language='JavaScript'>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="No Right-Click!";

///////////////////////////////////
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>

Yes, you are done! Right click on your blog has been disabled! 

Enjoy this hack !

No comments: