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.

5 comments:

Penny said...

Hehee...oopsie :). Thanks babe!

Penny said...

Holy crow it worked!!! Granted, I wasn't sure if it would since I could copy and paste the code due to the block hehee. Thanks mucho mas!

Amanda said...

Oops! Sorry :)

The Wrenns said...

Ha ha! I do have an e-mail address with blogger--I'm just not as cool as you to show it anywhere!

Ms Thang (unless you were talking about someone else..which makes me WAY un-cool!)

Amanda said...

I should have addressed the post to Ms Thangs since there are several of you who don't have their email address listed. I don't know if anyone comes back to the comments for a reply, I'd rather just reply to the email about the comment.