Jeevs
Supreme Member
- Dec 14, 2010
- 1,372
- 1,652
Getting your contents copied are very usual thing now a days..This short little code will disable the copy or select function for your entire blog/site..easy to install..just add it in between body tag..I know its not a proper protection but it will definitely save you from some cheap leechers
would be helpful for NEWBIES!
<script language="JavaScript1.2">
function disabletext(e){
return false
}
function reEnable(){
return true
}
//if the browser is IE4+
document.onselectstart=new Function ("return false")
//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}
</script>