Friday, October 5, 2012
0
Friday, October 5, 2012
Unknown
Disable Right Click in Blog
Disable right click in blog
Disable right click in blog to prevent others from copying precious content from blog,as most newbie or bloggers are emerging and they don't have enough content too post so they need copy contents(click here to view copied contents in any blog or website).Here is the simple trick to prevent copying content from blog by disableing right click in blog.
Here is the script for disabling right click on blogger posts.Just follow the steps to add codes.
step1:
Login to blog.
step2:
Then click layout in dashboard and add a javascript widget.
step3:
Then copy and paste the below code.
<script language="JavaScript">
<!--www.blog4al.com disable right click code start</script>
<!--
//Disable right mouse click Script
var message="Function Disabled!";
///////////////////////////////////
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")
// -->
<!--www.blog4al.com disable right click code start-->
step4:
Save the gadget and then layout.
Thats it,all the pages are disabled in blog to provide codes to visitors add syntax highlighter(syntax highlighter tutorial)
Save the gadget and then layout.
Thats it,all the pages are disabled in blog to provide codes to visitors add syntax highlighter(syntax highlighter tutorial)
Related Articles :
Do you like this article? Spread the words!
If you enjoyed this post, please consider leaving a comment or subscribing to the E-mail feed to have future articles delivered to your feed reader.
Subscribe to:
Post Comments
(
Atom
)
0 Responses to “ Disable Right Click in Blog ”
Post a Comment