Tuesday, April 24, 2012

Tutorial for Disable Right Click in Your Blog

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>

0 Comments To Dexner:

Post a Comment

There was an error in this gadget
Related Posts Plugin for WordPress, Blogger...