by:
George Manty
GoogleŽ AdsenseŽ can be a great tool for devising money. Blogs are besides becoming a great tool for devising money. Galore folk cognize that the most profitable position to place GoogleŽ AdsenseŽ ads is inline with your article text. The dilemna galore 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 much than three posts on the main page or in the archives section of the site. Once
this is the case you can't post an article GoogleŽ AdsenseŽ in the article.
While setting up my married woman and her friend's new site (www.naturalfamilynews.com), I came up with a trick exploitation JavaScript to fix that problem. The code I wrote works absolutely in WordPress, but you should be able to adapt it to any web log that uses templates.
Step 1. In the head section of the templet (between the <head> and </head> tags), you insert the following JavaScript code:
<script>
var temp=0;
</script>
Step 2. Go to the templet 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 makes is create a new DIV section in your code that is hidden if it appears much than three times on the page. So only three ads wish appear on any page. If you use GoogleŽ AdsenseŽ in another places in your blog, then you wish need to adjust the number "temp" in the 1st step up to display less inline ads. For instance, only two inline ads wish appear if you change the code to:
<script>
var temp=1;
</script>
Only one inline ad wish appear if you change it to:
<script>
var temp=2;
</script>
I hope this code helps you to do money online. Feel free to let others cognize simply about this trick, simply be sure to let them cognize wherever
you detected
simply about it.
Just simply about the Author
<hr>
Displaying GoogleŽ AdsenseŽ in Blogs
by Martyr Manty
This article can be reproduced in whole or in part,providing this byline is enclosed
on
with a link to
http://www.canimakebigmoneyonline.com/
<hr>