0
Tags:
Blogger,
Blogging
How to automatically add copyright when someone copies your articles in blogger
Posted by
Anonymous on 12/11/2011
Hello Everyone

First of all I would like to thank Ashiq Hassan for this article in his blog.
Ok now for the article.
Take a quick demo here :http://demo-onlinetrick.blogspot.com/2011/11/copy-some-of-article-and-paste-on.html
Whenever you copy it you get this Copyright Geekspot.in - All Rights Reserved
Thanks Ashiq Hassan
Now here is the tut.
Go to blogger->Design->edit html
Find </head>
And before it add the following code.
<script type='text/javascript'>
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/> Original from: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright Geekspot.in - All Rights Reserved"; // change this if you want
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}document.oncopy = addLink;
</script>
Change Copyright Geekspot.in - All Rights Reserved if you want.
Thanks for viewing. :)
First of all I would like to thank Ashiq Hassan for this article in his blog.
Ok now for the article.
Take a quick demo here :http://demo-onlinetrick.blogspot.com/2011/11/copy-some-of-article-and-paste-on.html
Whenever you copy it you get this Copyright Geekspot.in - All Rights Reserved
Thanks Ashiq Hassan
Now here is the tut.
Go to blogger->Design->edit html
Find </head>
And before it add the following code.
<script type='text/javascript'>
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/> Original from: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright Geekspot.in - All Rights Reserved"; // change this if you want
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}document.oncopy = addLink;
</script>
Change Copyright Geekspot.in - All Rights Reserved if you want.
Thanks for viewing. :)
Subscribe To Get FREE Tutorials!

Subscribe to:
Post Comments (Atom)
Share your views...
0 Respones to "How to automatically add copyright when someone copies your articles in blogger"
Post a Comment