Loading

Daftar Dari Sini Google AdSense 100% Approved

Thursday, February 9, 2012

Disable Right Click on the blog


Sometimes there are times when we want our blog page can not be right clicks by others, perhaps because there was something that made us have to make.

Maybe just because we want to protect all the secrets that lie behind the right-click it. Apart from that, whether you pingin or not, I try to help a practical way to make right click on your blog page to disable the system.

For that please follow the steps below:


<script>
var message="Sorry, Right Click My Current Disable";
///////////////////////////////////
function clickIE4(){if (event.button==2){alert(message);return false;}}
function clickNS4(e){if (document.layers||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=clickIE4;}
document.oncontextmenu=new Function("alert(message);return false")
</script>


Login to Blog
Click the Layout Tab
Click Add a Gadget
Click the options menu HTML / JavaScript
Paste the script below into the content column


note:
for the red writing that you can change the text of your choice. thanks

No comments:

Post a Comment