~TUTORIAL : Disable Highlight ~


Eli rase Eli tahu "anonymous" ni nk ape.... senang nk copy + paste coding penulisan seseorg kn? senang bila nk copy + paste tutorial sbb ade coding, susah sbb penulisan tu akan di copy utk tujuan yg tidak sihat!... huhuhuhu.... it's up to you lah...kt sini Eli hanya ajar kn shj yer... sebarang kebarangkalian atas tggungjawab sendiri taw.. :)

Korang bley ikut step ini :

1. Log In > Design > Add a Gadget > HTML/ Javascript

2. Copy kod di bawah :

<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. Paste kan di ruang HTML/Javascript korang tadi 

4. Then, SAVE lah..... menjadik x?senyummmmmm skittt.. ^_^

|Eli|


Terima Kasih sudi baca entri Eli..sila datang lagi.. (:

2 comments:

Anonymous said...

terima kasih info yang berguna

Anonymous said...

masih x paham la

 photo footerbwh2015_zps5c8e7c89.png

Copyright@Segala yang tercatat di atas adalah hak milik ElixierDeXandra