Cara menonaktifkan highlight pada blog, alias disable highlight. Thx to: Blognya Reggy
- Login ke blogger kalian
- Layout/Tata letak
- Add a Gadget/Tambahkan Gadget
- HTML/JavaScript
- Copy kode di bawah ini:
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"
}
disableSelection(document.body)
disableSelection(document.getElementById("mydiv"))
//Sample usages
//Disable text selection on entire body
// //Disable text selection on element with id="mydiv"
</script>
<body oncontextmenu="return false;">
<body document.onselectstart="return false">
- paste di HTML/JavaScript
- Save ^^
Kalo kalian enggak bisa copas kode di atas, karena udah aku disable highlight, kalian bisa klik link Blognya Reggy di atas ^^
No comments:
Post a Comment