Today, i want to show to you how to disable your right click for your blog.
1. Sign in and after that go to "Design"
2. Go to edit layout and click "Add a gadget"
3. Find "HTML/JavaScript" gadget
4. Copy all this coding and paste in "HTML/JavaScript" gadget.
5. You can change your own message in the orange color in the coding
6. You will see the result if you try to right click.
<script language=javascript>
<!--
var message="YOUR MESSAGE";
///////////////////////////////////
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>
skip to main |
skip to sidebar
Write.Share.Comment
Followers
Powered by Blogger.
PLEASE FOLLOW ^_^
When one door closes, another opens; but we often look so long and so regretfully upon the closed door that we do not see the one that has opened for us. - Alexander Graham Bell
Feedjit
ChatBox
web hosting murah
0 Comments To Dexner:
Post a Comment