Wednesday, 11 April 2012

Disable Text Selection: Prevent Copying from your blog


New Tutorial To Prevent Copying from your blog!
Just Follow This Steps!

Go to EDIT HTML section of your blog

Place the below code in the <head> tag:

<script language='JavaScript1.2' type='text/javascript'>
        //The functions disableselect() and reEnable() are used to return the status of events.


        function disableselect(e)
        {
                return false 
        }

        function reEnable()
        {
                return true
        }

        //if IE4 
        // disable text selection
        document.onselectstart=new Function (&quot;return false&quot;)

        //if NS6
        if (window.sidebar)
        {
                //document.onmousedown=disableselect
                // the above line creates issues in mozilla so keep it commented.

                document.onclick=reEnable
        }

        function clickIE()
        {
                if (document.all)
                {
                        (message);
                        return false;
                }
        }

        // disable right click
        document.oncontextmenu=new Function(&quot;return false&quot;)

</script>








Now In The Same EDIT HTML section, press ctrl+f and look for body {

Now After The { Press Enter And Insert The Following line And Press Enter

-moz-user-select: none;


Now Save Your Template

ENJOY!!!

No comments:

Post a Comment