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.

Sunday, October 3, 2010

LEARNING HTML

Today, almost all Web documents created with HTML (Hypertext Mark-up Language). Although you can just create a web page (web pages) without the slightest understanding of HTML, ie using a WYSIWYG HTML editor like Microsoft FrontPage manifold, Adobe PageMill or Netscape Composer, but it is strongly recommended and almost required, so you understand the HTML language. Mainly so you can take advantage of an optimal range of facilities the browser and remember that there are a number of weaknesses in the WYSIWYG editor as above. For that first step for those who aspire to have their own website is to learn HTML.
HTML (Hypertext Markup Language) is a programming language used to write a document format that can be used in the Web. With HTML, ASCII text (*. txt files) can be polished (in-mark-ups) with certain codes, called tags to the HTML document (file *. htm or *. html). Therefore, to create an HTML document, you can use any plain text editor program, ranging from Notepad to MS Word. For convenience, we use the Notepad program. Open the Notepad program. If you do not know how, click Start> Programs> Accessories and then Notepad. Now follow carefully the following exercises one after another.
HTML CODE RECOGNITION

Wednesday, July 14, 2010

Conditions That Must Make Before Filled Blog

These are requirements that must be held before making the blog. Because it is still in an atmosphere of birthdays, so this time I want to give a little light blogging tips-only light in accordance with my personal experiences before and during a blogger.

For those of you who until now still has not enliven the universe involves blogger world Indonesia may be one of the reasons is to start feeling confused, confusing to where to begin the journey to become a blogger, confused about what to have to become a blogger.

If so you are now facing, so calm, to help you find answers to your questions and confusion over this so here I will describe some absolute requirement to be possessed by a person before making a blog.

Sure to create a blog and become a blogger that we are required to meet several requirements, including:
Own E-mail
Having the computer + modem / internet connection personal,
Having a strong base of knowledge about information technology, web design, programming, good language PHP, HTML, or other
Has a substantial financial capital,
Aged over 17 years

Some of the terms above at least you should have before you can have your own blog.

Sorry, it looks like I made a mistake about the inclusion of certain terms, the following will I fix the conditions that must be owned by a person before making a blog. Among them are:
Own E-mail
Having the computer + modem / internet connection personal,
Having a strong base of knowledge about information technology, web design, programming, good language PHP, HTML, or other
Has a substantial financial capital,
Aged over 17 years

Why are four of the five conditions above my streak?

The answer is because of all of these conditions you need only one course, is to have an e-mail or electronic mail.

E-mail/Surat Own Home. E-mail in cyberspace serves as an ID card, as a person's identity in cyberspace, and like ID cards, then every activity we do in cyberspace, we need to E-mail address as a key condition.

For example, when we want to create a facebook or twitter account so we were asked to fill in the e-mail address we have, right?

To make your blog even asked to fill in the e-mail address that you have.

Why do I dare mention this only on one condition that must be met before you start a blog?

You do not need to have a computer, modem, or any other personal Internet connection, because the cafe was already more than enough to be a medium associated with the virtual world includes creating a blog.

You do not need to have a strong knowledge of technology information, programming, web design, PHP, HTML, or other, because an oath when I start making my blog have absolutely no knowledge about these things, and even now I still lack knowledge . But all these things can be learned in your journey to become a blogger with a blog that you have it.

You do not need to have a major financial capital to become a blogger, at least you do not need it. Why? you have enough money to pay the bill cafe (+ / - USD 3500/hour), or buy credits to your personal internet connection (if you have one), and to create a blog so you can start from a free blog, either through wordpress.com, or blogger . com. Large financial capital may be you need when you've started good blog, and you want to promote your blog through advertising.

You do not have the age of 17 years, because you are not waiting to watch a porn video, hehehe This is evident by the number of young bloggers whose age was probably still in high school or junior high, or maybe there is still SD.

So, do you feel free to create a blog?

Simply have e-mail, has the determination, have the willingness and readiness to lead this activity with all the love, sorrow, obstacles, and the rise and fall, may also reprimand from other bloggers for posting your content may be a bit ridiculous, and the desire to keep learning, then That alone is enough to make you a blogger bloggers even top someday.

Do not worry too much dreaming about the results of the first blogging, because dreams are too high when not supported by the psychic forces in the face of all exams will make you disappointed in the end, then you will abandon your blog is already up, and may begin to revile that blogging business or activity is futile.

Maybe all these simple tips from my first, hopefully useful and able to make you motivated by an article that I made this

Thursday, January 7, 2010

How to make Related Article on blogspot

When Search on google and find the destination you are looking for, sometimes direct visitors to leave our blog, but still a lot of posts related to the topic you are looking for. Therefore requires a link to get there. One way is by using the Related Articles / Post. How to Make Related Articles on this blogspot is very easy.

How to make - Sign in to your dashboard, Layout, Edit HTML (do not forget to backup the template), Tick the Expand widget.

Look for this code <data:post.body/>

put this code under the code above


<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div class='similiar'>
<div class='widget-content'>
<h3>Related Article</h3>
<div id='data2007'/><br/><br/>
<script type='text/javascript'>

var homeUrl3 = &quot;<data:blog.homepageUrl/>&quot;;
var maxNumberOfPostsPerLabel = 4;
var maxNumberOfLabels = 10;

maxNumberOfPostsPerLabel = 100;
maxNumberOfLabels = 3;


function listEntries10(json) {
var ul = document.createElement(&#39;ul&#39;);
var maxPosts = (json.feed.entry.length &lt;= maxNumberOfPostsPerLabel) ?
json.feed.entry.length : maxNumberOfPostsPerLabel;
for (var i = 0; i &lt; maxPosts; i ) {
var entry = json.feed.entry[i];
var alturl;

for (var k = 0; k &lt; entry.link.length; k ) {
if (entry.link[k].rel == &#39;alternate&#39;) {
alturl = entry.link[k].href;
break;
}
}
var li = document.createElement(&#39;li&#39;);
var a = document.createElement(&#39;a&#39;);
a.href = alturl;

if(a.href!=location.href) {
var txt = document.createTextNode(entry.title.$t);
a.appendChild(txt);
li.appendChild(a);
ul.appendChild(li);
}
}
for (var l = 0; l &lt; json.feed.link.length; l ) {
if (json.feed.link[l].rel == &#39;alternate&#39;) {
var raw = json.feed.link[l].href;
var label = raw.substr(homeUrl3.length 13);
var k;
for (k=0; k&lt;20; k ) label = label.replace(&quot;%20&quot;, &quot; &quot;);
var txt = document.createTextNode(label);
var h = document.createElement(&#39;b&#39;);
h.appendChild(txt);
var div1 = document.createElement(&#39;div&#39;);
div1.appendChild(h);
div1.appendChild(ul);
document.getElementById(&#39;data2007&#39;).appendChild(div1);
}
}
}
function search10(query, label) {

var script = document.createElement(&#39;script&#39;);
script.setAttribute(&#39;src&#39;, query &#39;feeds/posts/default/-/&#39;
label
&#39;?alt=json-in-script&amp;callback=listEntries10&#39;);
script.setAttribute(&#39;type&#39;, &#39;text/javascript&#39;);
document.documentElement.firstChild.appendChild(script);
}

var labelArray = new Array();
var numLabel = 0;

<b:loop values='data:posts' var='post'>
<b:loop values='data:post.labels' var='label'>
textLabel = &quot;<data:label.name/>&quot;;

var test = 0;
for (var i = 0; i &lt; labelArray.length; i )
if (labelArray[i] == textLabel) test = 1;
if (test == 0) {
labelArray.push(textLabel);
var maxLabels = (labelArray.length &lt;= maxNumberOfLabels) ?
labelArray.length : maxNumberOfLabels;
if (numLabel &lt; maxLabels) {
search10(homeUrl3, textLabel);
numLabel ;
}
}
</b:loop>
</b:loop>
</script>
</div>
</div>
</b:if>

Save the template and finish