Here’s a tutorial on how to disable people from right-clicking on your blog - ideal if you don’t want people to copy your posts, view your blog’s source or stealing images.
Credit for the script & code goes to DynamicDrive.com and HTML-tutorials.
1. COPY THE SCRIPT [x]
<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>
2. FIND THE <BODY> TAG IN YOUR HTML AND PASTE IT THERE
If you’re having trouble finding it, hit CTRL+F (command+F for Mac) and type <body> into the bar that will appear above. It should show up in the code. Paste the script below there.
3. CLICK UPDATE PREVIEW AND SAVE
Self-explanatory.
4. OPTIONAL: DISABLE HIGHLIGHTING
This is an extra measure to prevent people from copying text. Simply copy this code and follow the instructions there.