We have been moved to http://www.bloganol.com/

This is the cross browser DHTML script from dynamicdrive that prevents default right menu from popping up when right mouse is clicked in the blog.This tool is very useful to different site owners who don't want to let their site content Copied.This script is provided in two style Alert and non alert . After you use Alert Script if someone Right click then a Message is appeared and if you use non alert then no message is displayed.To setup this tool in your blog Copy the Following code and paste it to your blog by adding a new page element.

Message Alert Script:
<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="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>

Message nonAlert Script:
<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

comments

5 Responses to "Disable Right Click in Blogger"
Anonymous said...
January 24, 2009 at 8:39 AM

it doesn't work in IE.


Anonymous said...
March 4, 2009 at 1:29 AM

nice info thanks :)


Anonymous said...
March 7, 2009 at 9:48 PM

Briliant......many thaks


Anonymous said...
March 20, 2009 at 2:59 AM

it doesn't work in IE.


Anonymous said...
May 3, 2009 at 9:31 AM

thx! ;)


Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!