Todays tutorial is how to disable right click on your blog. I find this really annoying because I like to open different pages in a new tab, however sometimes it is necessary to avoid people taking your photos and copying text. So read on if you want to know how to do it.
Layout > Add Page Element > HTML/Javascript
and enter the following code
<SCRIPT language=JavaScript>
<!-- http://www.spacegun.co.uk -->
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>
If you wish to edit what text comes up, change function disabled to whatever you wish. Example: Right click is disabled on this blog.
Save & Test.
A box should appear when you right click with your message.
(Code Source)