Harmony Clean Flat Responsive WordPress Blog Theme

Tutorial Disable Highlight text

11.6.13 Ramadhan Liya 0 Comments Category :

Tutorial ini berguna agar orang gak bisa  highlight teks pada postingan kita sehingga gak bisa juga di copy-paste. Tapi, saya saraninin, kalau blog kalian itu merupakan blog tutorial / tempat share artikel yg bermanfaat, mending gak usah pakai tutorial ini. Tutorial dan artikel itu gak akan bermanfaat lagi.
So, use it just for private site.

Steps


  • Tekan F3,  cari code  <head>
  • Copy code di bawah ini, 
<script language="JavaScript1.2">
        
        //Disable select-text script (IE4+, NS6+)- By Andy Scott
        //Exclusive permission granted to Dynamic Drive to feature script
        //Visit http://www.dynamicdrive.com for this script
        
        function disableselect(e){
        return false
        }
        
        function reEnable(){
        return true
        }
        
        //if IE4+
        document.onselectstart=new Function ("return false")
        
        //if NS6
        if (window.sidebar){
        document.onmousedown=disableselect
        document.onclick=reEnable
        }
        </script>
  • Paste di bawah code <head>
  • Preview,
  • Save


src : nurulatiqah


RELATED POSTS

0 Comment

NO HARSH WORDS
please, don't SPAM here!
I'll reply if I didn't busy -.-