November 7, 2010

Just For Penny At No-Reply Email Address

Yeah, Ms Thang, I'd have shared the code with you right away if you had a dang email address with Blogger. Just sayin'! 

Here's the code. Just stick it in a HTML sidebar gadget under the Design tab on your Blogger Dashboard. Be sure to edit your own message that will pop up when someone right clicks.

<script language="javascript">
<!-- http://www.spacegun.co.uk -->
var message = "INSERT YOUR MESSAGE TO THIEVES/PERVERTS HERE"; 
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>

Note: This code also renders copying of text impossible so readers who use right click for links are getting the shaft along with the perverts.
Post a Comment