Tutorial : Disable Highlight Text (Blogskin)
1. Dashboard > Template
2. Press Ctrl+f serentak dan cari code </head>
3. Then, copy code dekat bawah ni
<script type="text/javascript">4. Paste di atas code </head>
/***********************************************
* THIS IS DISABLE HIGHLIGHT TEXT SCRIPT
* YOU CAN REMOVE THIS CODES IF YOU WANT
* Credits http://www.dynamicdrive.com/
***********************************************/
//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>
5. Preview & save
1 comment [s]:
Sye guna code ni and menjadi! Thanks sis :D
Post a Comment