Toturial : Halang Entri Di Copy.

by - Disember 06, 2015


Assalammualaikum.

Ye...Aku pada awalnya nak halang entri aku daripada di copy. Tapi disebabkan aku kongsikan toturial, jadi aku batalkan niat aku tu. Aku risau nanti para newbie tak dapat nak copy toturial yang aku kongsikan tu. Alaa, kalau korang copy tanpa pengetahuan aku, dah tentu korang berdosa kan? Sila teruskan pekerjaan yang kotor itu. Hiihihihihi

 Jadi kepada para blogger yang tak nak entri korang di copy. Korang boleh halang tau? Nak tahu caranya? Mudah, korang boleh ikut step di bawah.

1) Log In > Layout > Add a gadget > Html/Javascript.

2) Copy kod dibawah dan paste pada ruang Html/Javascript.

<script type="text/javascript">/************************************************ Disable Text Selection script- &#169; Dynamic Drive DHTML code library (www.dynamicdrive.com)* This notice MUST stay intact for legal use* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code***********************************************/
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) Save.

Mudah bukan? Apa tunggu lagi?





You May Also Like

1 0000 orang comment sini

  1. sy tak berniat nk buat..huhu..future tak tau lahh

    BalasPadam

Sila tinggalkan comment korang disini!