In one of our previous posts, we featured a tutorial that shows you how you can disable the mouse’s right-click function as a way to deter (though not completely prevent) content copiers from copying your articles or materials. Here’s another extra measure you can take to make it even harder for them to plagiarize your stuff: prevent them from selecting or highlighting your text.
Implementing this to your Blogger blog is simple:
- In your dashboard, go to Layout and then click on Add a Gadget.
- Select HTML/JavaScript
- Copy and paste this code below:
<script type="text/javascript">
/***********************************************
* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//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>
- Then save the widget and you’re done.
0 comments:
Post a Comment