It really annoys us when somebody copies our content, we work hard for creating good post but when we see our posts on different websites it really disappoint us. So now i am here again with a dream trick you require to save your posts from copying. This trick is not like others where you have to disable your right click which makes your blog users uncomfortable. This trick does just what is required and it is really easy to install on your blog.
Also Read: Protect your blog with stylish Copyscape banners.
Steps to install this trick on your blog:
- Log in to your Blogger Account.
- Then go to Dashboard >> Template >> Edit HTML.
Note: Before doing any editing your template's edit HTML section make sure that you have backed up your template.
- In Edit HTML section press CTRL+F and search the following code :
</head>
- Now paste this code just above this closing </head> tag as mentioned in screenshots:
<!-- stop copying start-->
<script type="text/javascript">
/***********************************************
* Disable Text Selection script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
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>
<!-- stop copying end-->
 |
To Enlarge The Images please click on them. |
- Then click on "Save Template" tab.
- Now you code will look like this:
 |
To Enlarge the images please click on them. |
- Now the next thing you have to do is go to Dashboard >> Layout >> Add a gadget.
- In add a gadget select HTML/JAVASCRIPT and paste the below code in it as mentioned in screenshots.
<!--Stop copying start-->
<script type="text/javascript">
disableSelection(document.body) //disable text selection on entire body of page
</script>
<!--Stop copying end-->
 |
To enlarge the images please click on them. |
- Then click on "Save" tab and you are done.
Also Read:
0 comments:
Post a Comment