Friday, October 5, 2012

Widgets

0

Disable Right Click in Blog

  • Friday, October 5, 2012
  • Unknown
  • 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)

    0 Responses to “ Disable Right Click in Blog ”


    *Important - If you want to be informed of any replies to your comment, check the "Subscribe By Email" before submitting. Please Do Not Spam

    Post a Comment