How to monetize your old blog posts (using javascript)
If you have a blog and are interested in monetizing your old posts, this is a great article about how to do just that. There is php code in the article that works with wordpress, but if you don’t have wordpress you can use the javascript version I wrote below:
<script language= javascript type=”text/javascript”>
function isFromSearchEngine() {if (document.referrer != “”) {var searchEngines=new Array(“/search?”, “images.google.”, “web.info.com”, “search.”, “del.icio.us/search”, “soso.com”, “/search/”, “.yahoo.”); for (engine in searchEngines ) { if(document.referrer.match(searchEngines[engine]) != null) { return true;}}}} </script>
<script type=”text/javascript”>
if(isFromSearchEngine())
{<!— INSERT YOUR ADSENSE INFORMATION HERE //—> }
</script><script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”></script>