Ahad, 8 Januari 2012

Disabled Highlight Text

sergah!
      .Assalamualaikum.

      Tutorial kali ni pasal disabled highlight text
        Apa benda tu, 'Disabled Highlight Text' ??
                korang mesti tak suka kan kalau orang copy entri korang...
              So, Hani nak ajar lah ni..


      1) Login > Dashboard > Design > Add gadget > Html/javascript

      2) Copy code di bawah di dalam ruangan html/javascript tu tadi..
 <script type="text/javascript">function disableSelection(target){if (typeof target.onselectstart!="undefined") //IE routetarget.onselectstart=function(){return false}else if (typeof target.style.MozUserSelect!="undefined") //Firefox routetarget.style.MozUserSelect="none"else //All other route (ie: Opera)target.onmousedown=function(){return false}target.style.cursor = "default"}//Sample usages//disableSelection(document.body) //Disable text selection on entire body//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"</script><script type="text/javascript">disableSelection(document.body) //disable text selection on entire body of page</script>
     3) Pastekan ayat yang korang copy tadi  kat atas blog post korang...

 
 
      4) Save...


~ Tq,Kerana Sudi Membaca ! Like Kalau Suka ! ~

0 budak tercomel..:

Related Posts Plugin for WordPress, Blogger...
Glitter Pink Cute Bow Tie Ribbon