I was search for an aritcle for my assignment while copy pasting my valuable content i notice that a refrence link with that content is also appearce at the bottom of the content indicating the source, I thought that was kind of safty tip and tried to figure out how to do it. they use a service called Tynt. That’s cool and all, but I wanted to see if I could make it happen using JavaScript. All I needed my function to do was grab the copied selection, tack on a copyright notice and then add the two to the clipboard.
How To Add A Copyright Notice To Copied Text
1. Go To Blogger.com > Select Your Blog > Template
2. Tick the box "Expand widgets templates"
3. Search for the Head ending Tag </head>
4. And Paste Just Above to Below code
5. Change " ITWebister Copyright. All Rights Reserved. Strict No Copy Policy Read more at:" With Your desired content.
6. do not delete "©" this is copyright sign.
You Are Done.
Please Comment Your Opinion
Tags:
Anti-Hacking,
Blogger Tricks
How To Add A Copyright Notice To Copied Text
1. Go To Blogger.com > Select Your Blog > Template
2. Tick the box "Expand widgets templates"
3. Search for the Head ending Tag </head>
4. And Paste Just Above to Below code
<!-- Add @copyright Code During Coping By ITW (http://itwebister.blogspot.com/2013/03/how-to-add-copyright-notice-to-copied.html) -->
<script type='text/javascript'>
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/> ITWebister Copyright ©. All Rights Reserved. Strict No Copy Policy Read more at: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/> "; // 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>
<!-- End Add @copyright Code During Copien By ITW (http://itwebister.blogspot.com/2013/03/how-to-add-copyright-notice-to-copied.html) -->
5. Change " ITWebister Copyright. All Rights Reserved. Strict No Copy Policy Read more at:" With Your desired content.
6. do not delete "©" this is copyright sign.
You Are Done.
Please Comment Your Opinion
If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to my regular Email Updates. Subscribe Now!
0 comments:
Have any question? Feel Free To Post Below: