Afrikaans Afrikaans Albanian Albanian Amharic Amharic Arabic Arabic Armenian Armenian Azerbaijani Azerbaijani Basque Basque Belarusian Belarusian Bengali Bengali Bosnian Bosnian Bulgarian Bulgarian Catalan Catalan Cebuano Cebuano Chichewa Chichewa Chinese (Simplified) Chinese (Simplified) Chinese (Traditional) Chinese (Traditional) Corsican Corsican Croatian Croatian Czech Czech Danish Danish Dutch Dutch English English Esperanto Esperanto Estonian Estonian Filipino Filipino Finnish Finnish French French Frisian Frisian Galician Galician Georgian Georgian German German Greek Greek Gujarati Gujarati Haitian Creole Haitian Creole Hausa Hausa Hawaiian Hawaiian Hebrew Hebrew Hindi Hindi Hmong Hmong Hungarian Hungarian Icelandic Icelandic Igbo Igbo Indonesian Indonesian Irish Irish Italian Italian Japanese Japanese Javanese Javanese Kannada Kannada Kazakh Kazakh Khmer Khmer Korean Korean Kurdish (Kurmanji) Kurdish (Kurmanji) Kyrgyz Kyrgyz Lao Lao Latin Latin Latvian Latvian Lithuanian Lithuanian Luxembourgish Luxembourgish Macedonian Macedonian Malagasy Malagasy Malay Malay Malayalam Malayalam Maltese Maltese Maori Maori Marathi Marathi Mongolian Mongolian Myanmar (Burmese) Myanmar (Burmese) Nepali Nepali Norwegian Norwegian Pashto Pashto Persian Persian Polish Polish Portuguese Portuguese Punjabi Punjabi Romanian Romanian Russian Russian Samoan Samoan Scottish Gaelic Scottish Gaelic Serbian Serbian Sesotho Sesotho Shona Shona Sindhi Sindhi Sinhala Sinhala Slovak Slovak Slovenian Slovenian Somali Somali Spanish Spanish Sundanese Sundanese Swahili Swahili Swedish Swedish Tajik Tajik Tamil Tamil Telugu Telugu Thai Thai Turkish Turkish Ukrainian Ukrainian Urdu Urdu Uzbek Uzbek Vietnamese Vietnamese Welsh Welsh Xhosa Xhosa Yiddish Yiddish Yoruba Yoruba Zulu Zulu

 

 

Article Navigation

Back To Main Page


 

Click Here for more articles

Google
Displaying Google Adsense in Blogs
by: George Manty
GoogleŽ AdsenseŽ can be a great tool for making money. Blogs are also becoming a great tool for making money. Many people know that the most profitable position to place GoogleŽ AdsenseŽ ads is inline with your article text. The dilemna many of us face is that the GoogleŽ AdsenseŽ Terms of Service only allow 3 ad blocks per page. The reason this is a problem for bloggers is that most blogs show more than three posts on the main page or in the archives section of the site. When this is the case you can't post an article GoogleŽ AdsenseŽ in the article.

While setting up my wife and her friend's new site (www.naturalfamilynews.com), I came up with a trick using JavaScript to fix that problem. The code I wrote works perfectly in WordPress, but you should be able to adapt it to any blog that uses templates.

Step 1. In the head section of the template (between the <head> and </head> tags), you insert the following JavaScript code:

<script> var temp=0; </script>

Step 2. Go to the template used to display your post (in WordPress the main template). Then insert the following code inside the display area for the post:

<script> if (temp>2) document.write("<div style='visibility:hidden;height=1px;font-size:0;display:none'>"); </script>

Step 3 Insert your GoogleŽ AdsenseŽ code directly following the </script> tag that you inserted in Step 2 above.

Step 4 Insert the following code after the </script> tag from the GoogleŽ AdsenseŽ code you inserted in step 3 :

<script> if (temp>2) document.write("</div>"); temp++; </script>

Step 5. Save your changes and test it out.

What this does is create a new DIV section in your code that is hidden if it appears more than three times on the page. So only three ads will appear on any page. If you use GoogleŽ AdsenseŽ in other places in your blog, then you will need to adjust the number "temp" in the first step up to display less inline ads. For instance, only two inline ads will appear if you change the code to:

<script> var temp=1; </script>

Only one inline ad will appear if you change it to:

<script> var temp=2; </script>

I hope this code helps you to make money online. Feel free to let others know about this trick, just be sure to let them know where you heard about it.
About the Author

<hr> Displaying GoogleŽ AdsenseŽ in Blogs by George Manty This article can be reproduced in whole or in part,providing this byline is included along with a link to http://www.canimakebigmoneyonline.com/ <hr>

 



©2005 - All Rights Reserved

Total Views stat / Page Views stat

Advertise Here

web page counter