This code will add a link back to your site when content is copied from your site, by users using the cut/paste function.
Letting your good content work to bring links back to your site without the need to do anything but create good content.

The // instructions outline how to edit it for different linking effects.

Code Needs to be Added Between the BODY tags of Your Pages (Don't Put in the HEAD)


<script type="text/javascript"> function LinkedSource() { var body_element = document.getElementsByTagName('body')[0]; var title = document.title; var selection; selection = window.getSelection(); var pagelink = "<br /><br /> Source: <a href='"+document.location.href+"'>"+document.location.href+"</a>"; // can change "+document.location.href+" to a static title or to "+title+" which would show the page title var copiedtext = selection + pagelink; var linkdiv = document.createElement('div'); linkdiv.style.position='absolute'; linkdiv.style.left='-600613px'; body_element.appendChild(linkdiv); linkdiv.innerHTML = copiedtext; selection.selectAllChildren(linkdiv); window.setTimeout(function() { body_element.removeChild(linkdiv); },0);} document.oncopy = LinkedSource; </script>