How to Inserting ads into the posts on Blogspot ?

Thứ Hai, 4 tháng 6, 2012


In fact if you just insert code to post ads, we can only insert before or after the article, but inserted between posts probably not. If you want to insert into the article, you must use to a period javascript smaller.
- The method insert ad code into the article is not completely automatic, the javascript effective only replace the ad code every time we post a new editor. So when you perform this procedure, only with the posts that we insert the replace the ad code Post it on the new show on the article, but the article does not have the code replacement it will present at the top.
- Expanding we can call this procedure is to insert ad code into any position in the article.
☼ Now we begin:






1. In layout
2. In HTML code editing
3. Click "Expand widget templates"
4. Find the following code:

<data:post.body/>

5. Replace it with the code below:

<div data:post.id'> expr:id='"aim1" + </ div>
 <div style="clear:both; margin:5px ;">
 Code your ads here
 </ Div>
 <div expr:id='"aim2" + data:post.id'>
 <data:post.body/>
 </ Div>
 <script type="text/javascript">
 obj0 var = document.getElementById ("aim1 <data:post.id/>");
 var obj1 = document.getElementById ("aim2 <data:post.id/>");
 var s = obj1.innerHTML;
 var r = s.search (/ \ x3C!-- pcworld-com.blogspot.com --\ x3E/igm);
 if (r> 0) {s.substr obj0.innerHTML = (0, r) = s.substr obj1.innerHTML (r +16);}
 </ Script> 
6. Save the template

For display advertising in the location you want in your article, when you insert your post code below to add the location you want to display advertising. When you insert the code below, it will be replaced by your ad in the location you insert it, you must insert the correct code, the new ads you can display it. And here is the code to insert into your article

<!-- pcworld-com.blogspot.com --> 

Wish you success!
By EmVân Pcworld-com.blogspot.com
Xem thêm bài viết cùng chuyên mục: , ,

Ý kiến bạn đọc [ 0 ]


Ý kiến của bạn