Plagiarisme memang berleluasa pada zaman IT ni. Jadi, ada blogger yang memilih untuk 'disable copy option' sebagai salah satu pencegahan. Tapi, masalah juga untuk blogger niche 'Code Tutorial' 'TutorialBlog' 'HTML+CSS'.
Ikut je step ni okay!
1. Pergi ke Dashboard > Template > Edit HTML (2013)
2. Cari kod ni, <head>
copy kod di bawah, paste bawah <head> atau atas </head>
/*--Disable Copy Paste---/
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
3. Paste kod ni di atas ]]></b:skin>
/*----- Disable Text Selection with CSS Code---*/
.post blockquote {-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
user-select: text !important;
}
body {
-webkit-user-select: none !important;
-moz-user-select: -moz-none !important;
-ms-user-select: none !important;
user-select: none !important;
}
.post blockquote { boleh tukar dengan ,
.post-body blockquote { atau .post-body blockquote { atau bodyquote {
ikut template blog masing-masing.
4. SAVE! View blog. tanpa tutup tetingkap 'Template'
dah puas hati baru close.
credit: twistblog
Terima kasih baca, sudi-sudilah komen :) .


No comments:
Post a Comment