Haritu Afiq ada buat TuTo Disable Right Click . So , harini Afiq mau ajar korang cara Disable Text Highlight .
Kalau korang mau TuTo ni , ikut step-step di bawah .
1. Dashboard > Design > Add a Gadget > HTML / javascript
2. Masukkan code di bawah .
<script type="text/javascript">
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
3. Save dan lihat hasilnya .
EHHHHH ! ada satu lagi cara la , ikut step-step berikut .
1. Dashboard > Design > Edit HTML
2. Cari code di bawah : (CTRL + F)
.post {
padding:10px;
font-size:70%;
margin: 0 0 25px 0;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
user-select: none;
}Tambahkan code yang berwarna oren seperti diatas .
GOOD LUCK :)
0 Ayat-Ayat Manis:
Post a Comment