I am sure that a lot of you are bloggers and would like to protect your copyrighted work without letting other people to copy your work by disabling right click and highlighting. Here is a solution. (This is for blogspot)
- Go to Layouts
- Click add a new gadget
- Select Html/Javascript (In this case we are using a Javascript)
- When the blank layout appears, add the following code snippet into it and leave the title blank:
<script type="text/javascript">
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>
Should work if you followed the steps correctly.
For hand coded websites using dreamweaver:
Try implementing this on your blog! If you own a website and not a blog, just copy this Javascript above the </body> tag
For WordPress,
Try installing this plugin called Wp-Copyright Pro!. This will allow deselection of text, prevents right click, protect from iframes and drag and drop photos. At the same time, this has no problem with search engines at all! So give it a try!
Link here
Like this post? Share them with your friends or subscribe to us and follow on Google. Comment your thoughts here.
Like this post? Share them with your friends or subscribe to us and follow on Google. Comment your thoughts here.