Disable right click on your blogger for security purpose.Here are some codes that contribute to disable right click on your blogspot site

Login to your blogger dashboard
Click on Design tab

Then click Page Element
After that open a java/HTML textbox and paste the any one following code
<script language="JavaScript">
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit <a target="_blank" href="http://www.dynamicdrive.com" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.dynamicdrive.com']);">http://www.dynamicdrive.com</a>
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>
If above code does not work try the following code
<script language="JavaScript">
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit <a target="_blank" href="http://www.dynamicdrive.com" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.dynamicdrive.com']);">http://www.dynamicdrive.com</a>
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>
If above code does not work try the following code
<script language=JavaScript>
<!-- <a target="_blank" href="http://www.spacegun.co.uk" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.spacegun.co.uk']);">http://www.spacegun.co.uk</a> -->
var message = "function disabled";
function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message); return false; }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; } }
document.onmousedown = rtclickcheck;
</SCRIPT>
That all folks.If you like please spend few moments to share this
0 comments:
Click Here To add Comment