tutorial : disable highlight

hello semua!!
hurm...
x nk bagi orang copy penulisan korang??
senang je...
confirm , orang x kan boleh copy penulisan korang...
dijamin 100%
percaya lah kat elin..

jom ikut tutorial ni :


 dashboard > design > add a gadget > html/java script
 copy code dibawah ni dan pastekan kat ruangan javascript



<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> 

 then click save..menjadi x?? kalau jadi cepat2 bagi tahu elin...





-----------------------------------------------------------
leave your comment :)
-----------------------------------------------------------





No comments:

Post a Comment

orang yang last comment kat blog nye,
orang tu yang paling cute <3