Welcome here! Please leave your comment and follow my blog. Use CTRL+C to copy (no right click allowed)
This blog is full of tutorials. Please use them, by clicking the "STUFF" page above^^ Thanks for your visit!!
I'm Gifta, I can't online everyday /^-^\/>

Thank you for your visit, please use my tutorials...!
August 05, 2016

Monday, June 29, 2015

Disable Highlight

Hai, Gifta tadi sudah post cara mengubah highlight pada blog. Sekarang Gifta buat tutorial disable highlight! Yuk langsung!


Sebenarnya apa maksudnya? Kalian tau gak?
Jadi, gini lho... Kita terapkan tutorial ini di blog agar tidak ada orang yang bisa meng-highlight tulisan di blog kita. Bermanfaat untuk blog yang sering dicopas oleh orang lain, tapi mereka tidak mau memberi credit/sumber. Sebel kan? Nah, mari kita disable higlight agar mereka tidak bisa copas!!!
THANKS TO MS. CHIAKI FOR THE CODES
1. Blogger > Dashboard > Layout 
2. Klik Add a Gadget dan pilih HTML/JavaScript
3. Copy kode di bawah dan paste pada blank page HTML/JavaScript
<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>
<script type="text/javascript">
disableSelection(document.body) //disable text selection on entire body of page
</script>
4. Save!

Sekarang gak ada lagi yang bisa copas postingan di blogmuuu

No comments

Post a Comment