Pages

Senin, 27 Juni 2011

Cara agar Artikel Blog anda tidak bisa di COPY oleh orang lain


1. Login ke blogger
2. Pilih Design >> Edit HTML

3. Copy code ini dan letakan di bawah code <head>

<script type="text/javascript">
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.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>


4. Lalu copy code ini dan letakan di bawah code <body>
<script type="text/javascript">
disableSelection(document.body) //disable text selection on entire body of page
</script>


5. Klik Save Template. Lalu sekarang coba lihat blog anda.

1 komentar:

doedoets mengatakan...

mantap gan !!

sangat membantu !!

Posting Komentar