Blogger Backgrounds

Saturday, July 9, 2011

Tutorial: Disable Right Click

Disable Right Click is when someone right click your blog and a pop up message appear...
Here's how it work:

1. Go to Dashboard => Design => Add Element => Add Gadget => HTML/Javascript
2. Copy the code below:

<script language=JavaScript>
<!--
//edit by unwanted
var message="Enter Your Message";
///////////////////////////////////
function clickIE4(){
if (event.button= =2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layer||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=clcikIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
//-->
</script>

Red Highlight: Your text...Write your message there.

P/S:Before saving it....preview it and try it...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