Blogger Backgrounds

Saturday, July 9, 2011

Tutorial: Disable Right Click Without Alert Message

Here How to do it:

1. Go to Dashboard => Design =>  Page Element => Add Gadget => HTML/Javascript
2. Copy the code below and paste it at the html/javascript:

<script language=JavaScript>
<!--
///Disable right click III- By Renigade (renigade@mediaone.net)
///For full source code, visit http://www.dauspozi.com
var message="";
/////////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {
if (e.which= =2||e.which = =3) {(message);returm false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>

P/S: preview first before saving just in case it didn't work due to a few mistakes...

JibberJabber Kid...

Have A Nice JibberJabber Day!

No comments:

Post a Comment

JibberJabber Here

Copyright Owned by JibberJabber Kid Y(^,^)Y