| 0 comments ]

Right click on any internet browser is very important element.
and we must use it when it comes to copy or editing texts and etc..
and it’s very important when it comes to webmasters too.

but some people may use it in a bad way, and you may want to make click right disabled on your blog.
to protect you text, images links and etc….

so all what you have to do is only simple step.
you’ll need to add new html/javascript element to your layout.
now go to your blogger account.
navigate to Layout >> Add a Gadget >> and select html/javascript

then copy the next code and past in in html/javascript text box area

Code for this:-
<script language="JavaScript">
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//copied from http://bloghelpforbegineers.blogspot.com
//For full source code, visit http://www.dynamicdrive.com
//var message="Function Disabled!";
var message="You are not Autherised to this copy contact "http://bloghelpforbegineers.blogspot.com";
///////////////////////////////////
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>

then save the html/javascript. and view you blog.

when you try to do right click. a message will tell you that “Function disabled”

and if you want to change this words” Function Disabled”

find the next line in the code

var message="You are not Autherised to this copy contact "http://bloghelpforbegineers.blogspot.com";
and change Function Disabled! to what ever you want.

i hope it helps.


Enjoy chat with your blog too.. do comment for any type blog topic or any help!!!

Thanks,
-Amaresh

0 comments

Post a Comment

Thanks for reading , if you have any problem please leave me a comment here I will help you by my best.Please note that you put the friendly words to help each other to improving and developing these tips to be better,or the best way for you to track my blog is subscribing my Feed.You are always welcome on http://bloghelpforbegineers.blogspot.com

Best regards,
-Amaresh