Hello guys and again welcome to a place where you learn many tricks. Today's trick is specially for the people who are owning a blog or a website. Now days people are become so lazy and try to steal data. Especially people steal the data which is difficult to steal. So, today I have bought a wonderful trick for you by which you can protect your "google blog"
First of all you have to copy the exact code given below.
<!- START disable copy paste --><script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script><script type='text/javascript'> if(typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" ); } else{document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false"); } </script><!-- End disable copy paste -->
After copying this given code go to your blog and click on Layout tab in your blog.
Now you have to click on add new gadget. Then select the HTML/Java script. You not need to give the title you have to paste the copied code in it and save it. You have almost done.
Now click on save arrangement. Now nobody can copy or select text from your blog.
Done !
Sometime we need to protect only some part of our blog/website then for a specific area (eg. post section only), use the below jQuery script:
<script type="text/javascript">
$.support.selectstart = "onselectstart" in document.createElement("div");
$.fn.disableSelection = function() {
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
".ui-disableSelection", function( event ) {
event.preventDefault();
});
};
$("#Blog1").disableSelection();
</script>
If you face some problem in doing this trick then please reply with a comment.If you like the post then reply with a comment
Please follow me on google+
Please don't forget to click on ads.
ads ?? ????? ???? ?? ?????
?? ?? ????? ???? ?????? ???? ??????