Wednesday, February 26, 2014

// // 1 comment

Cool Search Box with New Google Style

Cool Search Box with New Google Style

http://tonyisright.blogspot.com

Google has updated their appearance, including their search box. I think this Search Box is very nice with some. So better for us to try create Cool Search Box with New Google Style. Below is the difference of the search box.

OK, let's see the . Looks nice right? Now if you want to create cool search box with new google style, just follow the steps below.

1. Log in to your blogger account
2. Go to Design -- Edit HTML
3. Copy the code below, and paste above ]]></b:skin>

/* div container containing the form */
#searchContainer {
margin:20px;
}
/* Style the search input field. */
#field {
float:left;
width:200px;
height:27px;
line-height:27px;
text-indent:10px;
font-family:arial, sans-serif;
font-size:1em;
color:#333;
background: #fff;
border:solid 1px #d9d9d9;
border-top:solid 1px #c0c0c0;
border-right:none;
}
/* Style the "X" text button next to the search input field */
#delete {
float:left;
width:16px;
height:29px;
line-height:27px;
margin-right:15px;
padding:0 10px 0 10px;
font-family: "Lucida Sans", "Lucida Sans Unicode",sans-serif;
font-size:22px;
background: #fff;
border:solid 1px #d9d9d9;
border-top:solid 1px #c0c0c0;
border-left:none;
}
/* Set default state of "X" and hide it */
#delete #x {
color:#A1B9ED;
cursor:pointer;
display:none;
}
/* Set the hover state of "X" */
#delete #x:hover {
color:#36c;
}
/* Syle the search button. Settings of line-height, font-size, text-indent used to hide submit value in IE */
#submit {
cursor:pointer;
width:70px;
height: 31px;
line-height:0;
font-size:0;
text-indent:-999px;
color: transparent;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdjSa3tDv989cnZGgrFvJSxATWV_vXdsAwxxFJvtavgohCUP5KCgl1-a4xFtH0n7Mr8KSvyHU7zlL0XPUxZuHmGvcwkqCeACm1SMsE-PoXDlCEnOLTtzzDBAjaw13CIQDrughHfq5_0RkU/s1600/ico-search.png) no-repeat #4d90fe center;
border: 1px solid #3079ED;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
}
/* Style the search button hover state */
#submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdjSa3tDv989cnZGgrFvJSxATWV_vXdsAwxxFJvtavgohCUP5KCgl1-a4xFtH0n7Mr8KSvyHU7zlL0XPUxZuHmGvcwkqCeACm1SMsE-PoXDlCEnOLTtzzDBAjaw13CIQDrughHfq5_0RkU/s1600/ico-search.png) no-repeat center #357AE8;
border: 1px solid #2F5BB7;
}
/* Clear floats */
.fclear {clear:both}

=> Adjust the width with your blog

4. Copy the code below, and paste above </head>
<script src='http://code.jquery.com/jquery-1.6.1.min.js' type='text/javascript'/>
<script type='text/javascript'>
$().ready(function() {
// if text input field value is not empty show the &quot;X&quot; button
$(&quot;#field&quot;).keyup(function() {
$(&quot;#x&quot;).fadeIn();
if ($.trim($(&quot;#field&quot;).val()) == &quot;&quot;) {
$(&quot;#x&quot;).fadeOut();
}
});
// on click of &quot;X&quot;, delete input field value and hide &quot;X&quot;
$(&quot;#x&quot;).click(function() {
$(&quot;#field&quot;).val(&quot;&quot;);
$(this).hide();
});
});
</script>

5. Click save the template 

Adding New Google Search Box

1. Go to Design --> Page Elements --> Add Gadget
2. Choose "HTML/Java Script"
3. Add the code below
<div id="searchContainer">
<form name="SUYB" action="/search" method="get">
<input type="text" id="field" id="s" name="q"/>
<div id="delete"><span id="x">x</span></div>
<input type="submit" name="submit" id="submit" value="Search" />
</form>
</div>

4. Click save the template



Read More
// // Leave a Comment

How To Track Visitors to Your Blogger Blog

How To Track Visitors to Your Blogger Blog


A tracking and statistics program is a necessary tool for anyone wishing to build a profitable blog. It will show you useful information about how people found your blog, keywords they used to find it and how long they stayed.


Advantages of Tracking Visitors to Your Site

There are a number of advantages of tracking visitors to your site.

Firstly you will get a clear understanding of the demographics of your site traffic including information like geographical location and length of visits. This kind of information is useful for targeting content to meet the specific needs of your visitors age groups, lifestyles etc. It will enable you to extend your reach and tap into a larger target audience.

Another advantage is that as your site grows you will have the ability to identify trends. An analytics program will provide a snapshot view of the results of different strategies you might employ, the success of posts and of additions like social bookmarking and networking, stumbles and diggs. You will be able to determine the rate of increase in traffic and identify areas where you could improve for instance by targeting specific keywords.

Without this kind of information it is difficult to gauge the performance of your site. If you are interested in growing your site and I am sure you are then you will find access to analytics invaluable in determining where to put your energies. If you decide to sell your site further down the track you will need hard evidence about the level of traffic your site receives.

How to Add Analytics to Your Blogger Blog?

To add a tracking and statistics to your Blogger blog you will need to place a code block in your template. This is a relatively straightforward process. For a step by step tutorial of how to add Google Analytics to Your Blogger blog see my previous article Add Google Analytics to Your Blogger Blog.


This article has covered the advantages and benefits of adding a statistics and tracking program to your Blogger blog. An analytics program will help you track visitors to your blog and understand traffic trends. Grow your Blogger (Blogspot)site today by adding a free tracking and statistics program such as Google Analytics, Site Meter or Stat Counter.

Read More