Monday, December 20, 2010

Put adsense on the middle of post on blogspot

To increase the earnings or income from Adsense, Adsense placement is necessary for increasing the number of clicks. One easy way is to put adsense in blog posts.

How to put adsense in blog posts is easy, here's how:

1. first log into blogger layouts click select edit html do not forget to tick the expand widget;
2. <data:post.body/> to simplify search code press ctrl + f (facilitate the search);
3. replace <data:post.body/> code with the code below:

<div expr:id='"aim1" + data:post.id'> </ div>
<div style="clear:both; margin:10px 0">

<! - adsense html code ->

</ div>
<div expr:id='"aim2" + data:post.id'>
<data:post.body/>
</ div>
<script type="text/javascript">
var obj0 = document.getElementById ("aim1 <data:post.id/>");
var obj1 = document.getElementById ("aim2 <data:post.id/>");
var s = obj1.innerHTML;
var r = s.search (/ x3C! - adsense - x3E/igm);
if (r> 0) {s.substr obj0.innerHTML = (0, r); obj1.innerHTML = s.substr (r +16);}
</ script>

for <! - adsense html code -> input thine adsense html code and the code should be in the Phrase first.

4. Do not forget to save the template, and see the results.