Saturday, April 28, 2012

Google Translate Widget with Flags For Blogger

The Google Translate Widget for Blogger allows the visitors to translate your site or blog in their own language.
This widget also auto-detect your blog language and then translate it to the readers chosen language.

It supports 12 different languages:
English, French, German, Spanish, Italian, Dutch, Portuguese, Russian, Japanese, Korean, Arabic And Chinese.
google translate for blogger

How To Add The Google Translate Widget To Blogger

Step 1. Go to your Blogger Dashboard >> Layout and click on "Add A Gadget" link



Step 2. From the pop-up window, scroll down and choose HTML/JavaScript


 Step 3. Paste the code below in the empty box:

<script type="text/javascript">
function showHide(shID) {
    if (document.getElementById(shID)) {
        if (document.getElementById(shID+'-show').style.display != 'none') {
            document.getElementById(shID+'-show').style.display = 'none';
            document.getElementById(shID).style.display = 'block';
        }
        else {
            document.getElementById(shID+'-show').style.display = 'inline';
            document.getElementById(shID).style.display = 'none';
        }
    }
}
</script>

<style>

 .google_translate img {
margin: 10px 20px 0px 20px;
    height: 24px;
    width: 24px;
        }
        .google_translate:hover img {
filter:alpha(opacity=0.30);
        -moz-opacity: 0.30;
        opacity: 0.30;
        border:0;
        }

.more {
    display: none;
a.showLink, a.hideLink {
    text-decoration: none;
    color: #0880C4;
    padding-left: 18px;
    background: transparent('down.gif') no-repeat left; }

a.hideLink {
    background: transparent url('up.gif') no-repeat left;
color: #0880C4;}

a.showLink:hover, a.hideLink:hover {
color: #0880C4;
 }

 </style>

 <div>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="English" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJjGftwB8nQr9Jtw5CPSXktW7rnniAWmU3l5AnsEshL5Ec8qBgjlq5hNcyQLi03726DkvJAz1Zxtc85PTyYKJnpR9rf-Cn7L6WLx-3-Z_sG3cwSSnZiBfEzA2_1pkovA0GnWY0PXsTsUCL/s1600/United+Kingdom(Great+Britain).png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="French" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggWlcILuJKC6Pm-w9kY2cpmnSNeBdsNUyGDtG3SpcTiKKenxY04rYDkxQ7Ju4TkHTMZo07MaP5yne31dbW5LETWPV44ZWmJJz-o5sqdBhBYWx91YAGAULwKesho9xnGA3v1aYdLWShI7S9/s1600/France.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIAgtlarxo9KIhynw1oq3oRWaOrKR07GXv3mL8ITuHbZH5XxshSp23m_fxfBQF4OgvorV-p-K3dXgoeb6kOzoqSVawxM1EemlMZZj1mYEcvAnNl_m1Ay5AoCsC2BCDavqcQW8WNPl9xckG/s1600/Germany.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Spain" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyMjTMM6L8LRDZOQi41JhSgdexp26maNx2Y3nMwtilk2R-3Saj0XHxjapjLGwNFjErlw5dQl9TXKk7Llx7SOK8mfnKYbHbNYQFwLWMP2q17m9x0yiH-TV1yBEAzZLVqV74SaiiTy_07cIw/s1600/Spain.png" style="cursor: pointer;margin-right:8px" width="24"/></a><a href="#" id="example-show" class="showLink"
onclick="showHide('example');return false;">More</a>
<div id="example" class="more">
 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho6mjaUyMF4GblJzJlFMtPoPF7fhI9veo0sBN1neaJxGHMfExTgGqMRbVwHJaGEztRqfVS5vcQSD0HXJB5SkKOl35H2ZqAAf1YOPpaJitgC-v1DjZ2GphPkyn0_hVd7KuPX4CzttZ015-e/s1600/Italy.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgGW-b6IBSB1IbyFdMIgBdt56swgmqFg79TkXsZmTLy-FvaH-r_k4oTr7nfbMs_hshssJP1JlmyEiSyEhwfvY2ngjLJocFUyLrUpciZbPOZvgAJxluSGOg_ZtAzAvOQ4CfXQbsWVSb5J5/s1600/Netherlands.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
      <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIY6SmFMp275FkeGjX606B8HrkEFF7TXE0m_jew_9ojJdHpILpK9z3j24ooDpvGRIeGpebKnq7XOriDcNYd1cSYwqW5VfQIZCsYdSYVidJp-jJkNqnGD7RN57pFtFgbJJg3tYUfBBG5d-x/s1600/Russian+Federation.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Portuguese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cpt&hl=en'); return false;"><img alt="Portuguese" border="0" align="absbottom" title="Portuguese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6tPZ_lhiVR7MGZ1FzD8_Mn_PoBlD8JOCd18K4GhtXnl6XirTePMyw1GcLZZPXlTMDV20qyMRhOp21q4eEdowzEVW7MjAhqynolMYv0pVaJCST-UwrjyyBxQcAmOc3pDsVn7yA-gOfi5-o/s1600/Brazil.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br />
 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmEXiHfsxj9bQKJGEXGMO7IjT36YPBKGQjmpJQNaoX5W4IsjNWqvnO-hu_MN0yj4-D0k2YD2zKwJDWDbYEWhklsLjmfNZZswjkGF8fPzkiGUS3bdPfDnZFMklS3rIxWRRnD-jM1c8iCYKs/s1600/Japan.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi98orEGhWq81zaPYkFl5ZGbQJFftGCvnUCYmg26aRK08ek9EPzqmQvIRs01FWO9EGCAtpB60jE9STMf3Z-IpthT2D4zcCeGb29Bk0mpX_jMF_AabBk_wQ2C1txc5wgpbFnrlHkBglaNM8r/s1600/South+Korea.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSVpi0E4Hd2V7RAvS9KWqHwR94wJgdxVcvt6Anmi05tlyFCIE3FJW9malUIK-34sLcQ0b1oPM13veOz0oUZAUNQpjNorjTvz7gbHBc9WV0sx4l_gEw4XWoesXMCqm19DcdONpmh1N8SfTm/s1600/Saudi+Arabia.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7czh-cn&hl=en'); return false;"><img alt="Chinese Simplified" border="0" align="absbottom" title="Chinese Simplified" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVVnLVIN_GiSEpux6sx-bDLWMNFTq7gb66ScO2qWMMo3rektN6mXAc18-jEVXPZNm4qvtWEMCcGDiDmZY5fn17UJo05oFcetregH6b1rr4guS48IrxOzpaiT9x5u0wm5fN_xxB6JXsauQX/s1600/China.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
    <p><a href="#" id="example-hide" class="hideLink"
    onclick="showHide('example');return false;">Hide</p>
</div>
     </div>

Step 4. Now click on Save

google translate, blogger widgets, gadgets for blogspot
And you're done! Enjoy (:

Simple Recent Posts Widget for Blogger/Blogspot

The main advantage on this Recent Posts widget is that it will show not only post titles, but also post excerpts or snippets, and it's easy to customize or apply different style on it. To make it fit your own design, you will need to modify the CSS style - you can change the link or background color, the size and color of text/links.

What you can do with this widget:
- display post titles only
- change the number of posts
- change the number of characters of the post snippet/excerpt
- show the post dates

See the screenshot below:


How to add Recent Posts Widget to Blogger

1. Log in to your Blogger Dashboard > go to "Layout" and click the "Add a Gadget" link:


2. From the pop-up window, scroll down and choose HTML/JavaScript from the list...


3. Select & copy the code below the chosen widget and paste it into the HTML/JavaScript content box:

Recent Posts Widget with Snippets

<div id="hlrpsa">
<script type="text/javascript">
function showrecentposts(t){for(var e=0;e<numposts;e++){var n,r=t.feed.entry[e],i=r.title.$t;if(e==t.feed.entry.length)break;for(var s=0;s<r.link.length;s++)if("alternate"==r.link[s].rel){n=r.link[s].href;break}i=i.link(n);var a="...",d=r.published.$t,u=d.substring(0,4),o=d.substring(5,7),c=d.substring(8,10),l=new Array;if(l[1]="Jan",l[2]="Feb",l[3]="Mar",l[4]="Apr",l[5]="May",l[6]="Jun",l[7]="Jul",l[8]="Aug",l[9]="Sep",l[10]="Oct",l[11]="Nov",l[12]="Dec","content"in r)var m=r.content.$t;else if("summary"in r)var m=r.summary.$t;else var m="";var w=/<\S[^>]*>/g;if(m=m.replace(w,""),document.write('<div class="rctitle">'),standardstyling&&document.write("<br/>"),document.write(i),1==showpostdate&&document.write(" - "+l[parseInt(o,10)]+" "+c+" "+u),document.write('</div><div class="rcsumm">'),1==showpostsummary)if(standardstyling&&document.write(""),m.length<numchars)standardstyling&&document.write("<i>"),document.write(m),standardstyling&&document.write("</i>");else{standardstyling&&document.write(""),m=m.substring(0,numchars);var g=m.lastIndexOf(" ");m=m.substring(0,g),document.write(m+a),standardstyling&&document.write("")}document.write("</div>"),standardstyling&&document.write("")}standardstyling||document.write('<div class="bbwidgetfooter">'),standardstyling&&document.write(""),document.write(""),standardstyling||document.write("")}
</script>
<script type="text/javascript">
var numposts = 5;var showpostdate = true;var showpostsummary = true;var numchars = 100;var standardstyling = true;
</script>
<script src="http://blog-address.blogspot.com/feeds/posts/default?orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts">
</script></div><a style="font-size: 9px; color: #CECECE; float: right; margin-top: 10px;" href="http://blogger.chipchuck.com/2012/04/recent-posts-widget-for-bloggerblogspot.html" rel="nofollow" >Recent Posts Widget</a>
<noscript>Your browser does not support JavaScript!</noscript>
<style type="text/css">
.rctitle a{color:#000000;text-transform:capitalize;font-size:13px;}#hlrpsa {color: #999999; font-size: 12px;}.rcsumm {border-bottom:1px dotted #cccccc; padding-bottom:10px;margin-top:5px;}
</style>

Recent Posts Widget Showing Post Titles Only

<div id="hlrpsb">
<script type="text/javascript">
function showrecentposts(t){for(var e=0;e<numposts;e++){var n,r=t.feed.entry[e],i=r.title.$t;if(e==t.feed.entry.length)break;for(var d=0;d<r.link.length;d++)if("alternate"==r.link[d].rel){n=r.link[d].href;break}i=i.link(n);var s=r.published.$t,a=s.substring(0,4),o=s.substring(5,7),l=s.substring(8,10),u=new Array;u[1]="Jan",u[2]="Feb",u[3]="Mar",u[4]="Apr",u[5]="May",u[6]="Jun",u[7]="Jul",u[8]="Aug",u[9]="Sep",u[10]="Oct",u[11]="Nov",u[12]="Dec",standardstyling||document.write(""),document.write('<div class="rctitles2">'),standardstyling&&document.write(""),document.write(i),standardstyling&&document.write(""),1==showpostdate&&document.write(" - "+l+" "+u[parseInt(o,10)]+" "+a),standardstyling||document.write("</div>"),document.write("</div>"),standardstyling&&document.write("")}standardstyling||document.write('<div class="bbwidgetfooter">'),standardstyling&&document.write(""),document.write(""),standardstyling||document.write("/div")}
</script>
<script type="text/javascript">var numposts = 10;var showpostdate = false;var standardstyling = true;</script>
<script src="http://blog-address.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script></div><a style="font-size: 9px; color: #CECECE; float: right; margin-top: 10px;" href="http://blogger.chipchuck.com/2012/04/recent-posts-widget-for-bloggerblogspot.html" rel="nofollow" >Recent Posts Widget</a>
<noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>
<style type=text/css>
#hlrpsb a {color: #000000;font-size:13px;text-transform:capitalize;}.rctitles2 {padding-bottom:10px;margin-bottom:10px;border-bottom: 1px dotted #cccccc;}
</style>

How to customize the recent posts widget:

  • To set how many posts to display, change the 5 value for the recent posts widget with snippets and the 10 for the recent posts widget with post titles only.
  • If you want to display the post dates, change "false" to "true".
  • The recent posts widget with summary will display 100 characters; if you want more or less characters, change the "100" value.
  • To change the color of the links, modify the values in blue and for the font size, the values violet.
  • To change the color of the posts snippets modify the values in green and the values in orange for the font size.
  • Replace the http://blog-address.blogspot.com text with your URL.
4. Save your widget... and that's it. Enjoy!

Thursday, April 26, 2012

A Beautiful jQuery Drop-Down Menu For Blogger Blogspot

Alright, this time, we are going to make a stylish and simple jQuery drop down menu. The main objective is to make it as simple as possible, with some little jQuery effect and easy to customize/ apply different style on it. To style it into your own design, you just have to modify the a tag CSS style. You can change colors or put background images, or the size and color of text.
jquery menu, menu blogger

How to Add jQuery Drop-Down menu in Blogger

Step 1. Log in to your Blogger account and go to Template - Edit HTML


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box


Step 3. Type or paste this tag inside the search box and hit Enter to find it:
]]></b:skin>
Step 4. Add the following CSS just above ]]></b:skin>
#jsddm {
height: 40px;
margin: 0;
overflow: visible;
z-index: 2;
padding: 15px;
position:relative;
}
#jsddm li {
float: left;
list-style: none;
font: 12px Tahoma, Arial;
}
#jsddm li a {
display: block;
white-space: nowrap;
margin:1px 3px;
border: 1px solid #AAAAAA;
background: #cccccc;
background: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#cccccc));
background: -moz-linear-gradient(top, #ebebeb, #cccccc);
padding: 5px 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
text-shadow: #ffffff 0 1px 0;
color: #363636;
font-size: 15px;
font-family: Helvetica, Arial, Sans-Serif;
text-decoration: none;
vertical-align: middle;
}
#jsddm li a:hover {
background: #C8C8C8;
}
#jsddm li ul {
margin: 0;
padding: 0;
position: absolute;
visibility: hidden;
border-top: 1px solid white;
}
#jsddm li ul li {
float: none;
display: inline;
}
#jsddm li ul li a {
width: auto;
background: #CAE8FA;
}
#jsddm li ul li a:hover {
background: #A3CEE5;
}

Step 5. Find this tag:
</head>
Step 6. Add this script right above/before it:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js' type='text/javascript'/>
  <script type='text/javascript'>
  //<![CDATA[
var timeout    = 500;
  var closetimer = 0;
  var ddmenuitem = 0;
function jsddm_open()
  {  jsddm_canceltimer();
  jsddm_close();
  ddmenuitem = $(this).find('ul').css('visibility', 'visible');}
function jsddm_close()
  {  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}
function jsddm_timer()
  {  closetimer = window.setTimeout(jsddm_close, timeout);}
function jsddm_canceltimer()
  {  if(closetimer)
  {  window.clearTimeout(closetimer);
  closetimer = null;}}
$(document).ready(function()
  {  $('#jsddm > li').bind('mouseover', jsddm_open)
  $('#jsddm > li').bind('mouseout',  jsddm_timer)});
document.onclick = jsddm_close;
  //]]>
  </script>
Step 7. Hit the "Save Template" button to save the changes.

Step 8. Now let's add the HTML structure of the menu: Go to Layout > click on "Add a gadget" link


Step 9. Choose HTML/JavaScript from the pop-up window


Step 10. Paste the following code in the empty box:
<ul id="jsddm">
  <li><a href="#">Home</a>
  <li><a href="#">Link 1</a>
  <ul>
  <li><a href="#">Drop 1-1</a></li>
  <li><a href="#">Drop 1-2</a></li>
  <li><a href="#">Drop 1-3</a></li>
  </ul>
  </li>
 <li><a href="#">Link 2</a>
  <ul>
  <li><a href="#">Drop 2-1</a></li>
  <li><a href="#">Drop 2-2</a></li>
  </ul>
  </li>
 <li><a href="#">Link 3</a>
  <ul>
  <li><a href="#">Drop 3-1</a></li>
  <li><a href="#">Drop 3-2</a></li>
  <li><a href="#">Drop 3-3</a></li>
  <li><a href="#">Drop 3-4</a></li>
  </ul>
  </li>
 <li><a href="#">Link 4</a></li>
  <li><a href="#">Link 5</a></li>
  <li><a href="#">Link 6</a></li>
  </li></ul>
Note : Change the titles and replace the # symbol with the URL address of each of your links

Step 11. Click the "Save" button.


Important:
- if your menu is on the sidebar, or footer, just drag it to your page header and click Save again.
- if drop down links are not showing, do the following:

Go back to Template > Edit HTML and search (CTRL + F) this code:
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
Change 1 with 3 and no with yes like this:
<b:section class='header' id='header' maxwidgets='3' showaddelement='yes'>
Save the Template.

And again, go to Layout and drag the menu immediately below the header


Click the "Save Arrangement" on the upper right side and that's it!


Here you can see the DEMO.

Wednesday, April 18, 2012

How to Add Emoticons/Smileys in Blogger Comments

Emoticons or smiley faces are a great way to make comments more interesting and fun, so it's a pity that Blogger doesn't support them. In this tutorial, we will go through some simple steps to add these cool emoticons called Kolobok in Blogger/Blogspot comments, so that you and your blog visitors will be able to have an enjoyable time together.

UPDATE: Now available for threaded commenting system too!
emoticons in blogger, kolobok smileys, threaded comments



Adding Kolobok Emoticons or Smileys in Blogger Comments

Step 1. Log in to your Blogger account and go to 'Template', then click the 'Edit HTML' button:


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box


Step 3. Search (CTRL + F) for this tag:
</body>

Step 4. Now pay attention which code you should use. If your comments have no reply button, then you are using the previous commenting system, otherwise look for the threaded comments codes:

a) Use this script for previous commenting system with comments that have no reply function:
<!--kolobok-smileys-->
<script type='text/javascript'>
//<![CDATA[
function replaceText(){if(!document.getElementById){return;}
bodyText = document.getElementById("smileys");
theText = bodyText.innerHTML;
theText = theText.replace(/:\)\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL7DCmw-KcuMkOu_LOTGTlR2BU-c2JmKI-KOKqsIKkEVJaJISW0uCR9O4peBcA9IyvpPLpw4ZtLPU7Uvhx_N5JPk_lN17NfwE734PhWb1y4-AAjreYQZXCXHbtNU4dxMBlSxhEpuW1kLo/s1600/taunt.gif'/>");
theText = theText.replace(/=d&gt;/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy3z9LYMbSw0nVrqGdQs_stb5D_mlzGqZ3yuPN8jMA-RbIwAULlFLqLIDsW35EoWoE2GcMaxhu-D16u1-CB-I-pCIHWEtYtS5sCHTyjgNrJRcoiNMs0bV6_VS1abQK3iEgMGxtSXgm5Cw/s1600/suicide.gif'/>");
theText = theText.replace(/:d/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJfh4H9USypKe4y3NXpQ1_Qx0X_k0bU-GMB-TDz8VRyfhSfcqvnz6bw6Ia6PdCatULOQgm0dMrZjWBMP4lQfp7vvfWy1d1z_r8ZosLrM7rtHcVLHEGVhpM9jSNcBOpSlyyvUY_P2LVU1s/s1600/biggrin.gif'/>");
theText = theText.replace(/:p/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFzqeDaoWEBMzUkhBUX9BygMLf2nDVLFrv3ED8EMdaZwKtqW_GutHzahTSJUeoX0mWpszgw6xniHAmYUU541earx0YuY-4ZfTgyxdm8Li8posnYgfRm9KWhc1kY0Ma6rpmQS4lEnHzCZ4/s1600/tongue.gif'/>");
theText = theText.replace(/:\(\(/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsm_FO9U8R2p3ZA4ywKocSXcI9uWN-8GEWxc2KH-wjPMQBNu6ZS3usrdbsdFPuwf_krZcdSlc9ncWUn9vf5y_rEnlMQ60rMdyHaWomC3z3O6njKZryCcHSD73SBGBeJHgC3QEpueSg-Ds/s1600/cry2.gif'/>");
theText = theText.replace(/:\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1y0_f9v3x3-ECFw7ZB52ZisJDmAoo8QeXPFq-tyo1kmE0JWPUDu6C6UMOtt35LlZu32wiWi6SIpjOT7Eb6qekLrbrScfwpWokbeRv0uuzr3Tb1z0Ty5eTZiicgWTKhqSaQwK5U11_0R4/s1600/smile3.gif'/>");
theText = theText.replace(/:\(/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxdxPJOBLnBA2skxB0md4iRGBpSggvIgini3yh2_3skw9iplwo2Sbjm2ktGtzC3G19NIH6vpe9syI_qKZ7ErDgPfgUUx8Tnwzu5lzSLLcRuocOYdJ4rLEWSgcKDV4c5upxYr-j91O_XnU/s1600/sad.gif'/>");
theText = theText.replace(/:-\?/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHiGmggetlHnFrn48meBEI6bpPWWzcrS1PZe7aVIR5GuGUROSzteEZB-OvEAMM79VRL_FCaquH6zq5niHrutMeX9hsSg-bETrh1AribH2EIpFU6wOznZGExZZ8GWbCIsfE8a8KnkWQzQo/s1600/think.gif'/>");
theText = theText.replace(/d\(/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB6SyyXI4KhysFS9wJW4jRg3kqodOcaFbgelvvTc5xjsWxFJH7covOeD4H5poCNecNK8kYKMfxXqjd12C6bTEIrG_5sR4tH9zqBRuP5MM08vwBpKnwJ-CZpvmxLtjMWWBzIIHzP74_YcU/s1600/doh.gif'/>");
theText = theText.replace(/:-o/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAoriEugL7qKvO-uqSPXV2QByLlSJqY8DqHI8WK4iCfUIAhzld8Qk6myoadafHbijBf3SERulF_y5zk-k29Ysn7cCnCBXCQdeKE8ZASGIBqNU9CbB3YylEaSqp_2J9w7NNgmsY5-BvzdA/s1600/shock.gif'/>");
theText = theText.replace(/:-f/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpjFrNwzPR0K1jM1i8oi7V21mamwyeERkVqS96AAQmLCA7dDsCY2z69R9DmvtgzRpX2R1LRGXzTbJpD8e0IdVeJud0vg7CWbDklEAu9WH2i_aTzScngnFwfZrqS5RBRF__cZUIzLhdE4s/s1600/flowers1.gif'/>");
theText = theText.replace(/:-ss/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsnDbsnv04zGB5zHPOYLeb9fc4y3ybZWWQMSuhUFxiWHN5VhW-bPpzqlnYrm5Ih3zRdXr9F6dfr203cFzwtJTtq1NiEewCWwNlkjOJmmGRLhoyvYLYDGaLXhXeNViaGKEJwpQNgGL6_VI/s1600/unsure.gif'/>");
theText = theText.replace(/b-\(/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6zUNIxyZlqPDcT4n6FWQTMxXoWr2GbJkBhIYVLNJ5EbbiumrdfdThoREGAIbE96Q-r5Cky5EAuKU_k6R_0ES-9ElZEceGkniG1Hi2_8UUE7Yi2sprnHKcnNVX27baOxc71bvRekYQGJc/s1600/threaten.gif'/>");
theText = theText.replace(/h-\(/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXBCcbnNdCLOrUv3H9ifkZAGJDOqpgmezTVepikvuQkEa-gPSp7w39es8MNxWhI8xXi_m_j5CWLy43TOfJhcRVUr4ygSwqSdxbsSG4img-A2PKJ90yqEyJNiF7qbZ6pqvH1pSKcKrj6Pg/s1600/help.gif'/>");
theText = theText.replace(/g-\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGk54NqIn2oURSydia7vmks6x9BnSuED9s3G4P6V5ArSC4nTk0oHNgBNEBlDSs2n0urOyeaZMeMYbDNIpAf4Kc0nsEb9zWN7_iWb56VeWs2WrRFcyOdHoo48TV-EvZeP1fXFjxFjv16kE/s1600/good.gif'/>");
theText = theText.replace(/5-\p/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqKLB53GTWWnVVffPjUeFZQspOT_jqn3SfyZzNyNVpVyQavsiXTIQkyaIEUcxaG-TvM6WPBQb3kS2ffzGDcOR5tXmHy_yRF6ZEjf3vJbPbuFIfCT8150otIlhyphenhyphen2C7g6GpTO6cs9xBEQ0A/s1600/beee.gif'/>");
theText = theText.replace(/y-\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfWP9TNDyI6aK7yDkHzIyBxH5EWo1buIP6ltdt_Sc3KkU5A363_qicRfpV0FMnN9GbOIV0epSCAZFzvaUc6I48Th5sTKF5uYLPzEXFDZ3eOjCv0FXto86ui82La1bkpB__5oTRIc8SiXQ/s1600/yahoo.gif'/>");
theText = theText.replace(/c-\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeaoU4Cw8AYwyNmLA3WILhcD1MO-a3uHYUA6ol-OdU4SDAG0tLwhZdnkCj1H8Q_r4hBqG1-YRbzVCMSGZo40Iq9XqN3RtxONWXyb4FsUkw_nZmq4WoUINkSrpZ7Vq4l70Tdb-7_JzoQo8/s1600/crazy.gif'/>");
theText = theText.replace(/s-\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2bha2Yzp4Ut5Lay_qR7LbEWsNBZZ4e0RFU6aYVmrjy4yrDFJ_Lr_d19mMp15CQhde-A5gyGR6uT4KpYlH_pqb3Z3Q_IY7J536F2wNBjuchoEdereb7W7bE9k2f6f9U89MyqtaWc7fjlU/s1600/spiteful.gif'/>");
theText = theText.replace(/d-\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHqGiCHSOCmdFQ5-hgLQnaRFQQXpewjG829rDpinLKZu6YKyzy-H4FsccoM_zJVbk_z4R-kvtbd4fjSkxrXvMcvxXgi48UQRjreq0YeNqHSdSVFzLfLhsonjXYO7GdSiaYBYiMA0Qo9po/s1600/drinks.gif'/>");
theText = theText.replace(/w-\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirFVNkCnfQC6gXtQx6rq8bBrRNeLnVw7RqiRhvbsb3Nk-j9rlPO5RBxUJJ1QSe2Vf7Bf67JHeq9JVaz5CHtLhoDMFkDrK4CYrUEWHtxBuYOTMh46UhDlvJhg0HpTw3hktAyGizfQYmWIk/s1600/cheer.gif'/>");
theText = theText.replace(/:-\h/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjObwbgcpSdYYVnEnMRaw7MRjsmphiBjT18YrZzx-Rq_f4sfrO3M_htl7S9SfuMpDGrzKddwFHu1Gn0YUeRgJflKSVjLgu1tznOYOPiSR257fnitLQa-xVYvJ-0YNkK-5kLRHMQ-zFOH1Q/s1600/hi+2.gif'/>");
theText = theText.replace(/:X/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB0GuS-elWXCwhD4QfBDvas0L-lVS_-kC7UGgCX041KEMXPzlluPdeiQCrSifd2e0x6oHAEIz0QL9WSGX_OapNrG9JsoJnfk25VJU46Cv7Dp8TD0vKIl3ihzhxBfJznLgZ2d0_wr-8l4U/s1600/give_heart.gif'/>");
theText = theText.replace(/:\-\*/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVLKCWVdGJCMyRdooSdZWyiggvsP7GK7MOz8Y1EcQ-6Cc_G4tYt0u_5LS-4fCcrrfxfgSOo6BhcTiP1-jF7Nd2_gsPw_kUmpg0rYcKmZ2atM_6Me80NeW6xJ9pl6ph03tB7zODvAu8L-Q/s1600/air_kiss.gif'/>");
theText = theText.replace(/=\)\)/gi, "<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9LV30fIjhXGY0MaHtmSrrqqcEXhwA3GrKUrkBDaAhkaBZPqJvfESrlBVxjMuYGQ_4AP1-1GioqVLI2jpTeENDWS1LuH8DAqw43e9k8IkGVPHKZl_N0-4sRD9DDPSDVHSyEr99MLI5vNM/s1600/rofl.gif'/>");
bodyText.innerHTML = theText;
}
replaceText();
//]]>
</script>
<!--kolobok-smileys-->
b) Script for threaded commenting system with comments that have the reply function:
<script type='text/javascript'>
//<![CDATA[
a=document.getElementById('comment-holder');if(a){b=a.getElementsByTagName("p");for(i=0;i<b.length;i++){if(b.item(i).getAttribute('CLASS')=='comment-content'){_str=b.item(i).innerHTML.replace(/:\)\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL7DCmw-KcuMkOu_LOTGTlR2BU-c2JmKI-KOKqsIKkEVJaJISW0uCR9O4peBcA9IyvpPLpw4ZtLPU7Uvhx_N5JPk_lN17NfwE734PhWb1y4-AAjreYQZXCXHbtNU4dxMBlSxhEpuW1kLo/s1600/taunt.gif' alt='' class='smiley'/>");_str=_str.replace(/=d&gt;/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy3z9LYMbSw0nVrqGdQs_stb5D_mlzGqZ3yuPN8jMA-RbIwAULlFLqLIDsW35EoWoE2GcMaxhu-D16u1-CB-I-pCIHWEtYtS5sCHTyjgNrJRcoiNMs0bV6_VS1abQK3iEgMGxtSXgm5Cw/s1600/suicide.gif' alt='' class='smiley'/>");_str=_str.replace(/:d/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJfh4H9USypKe4y3NXpQ1_Qx0X_k0bU-GMB-TDz8VRyfhSfcqvnz6bw6Ia6PdCatULOQgm0dMrZjWBMP4lQfp7vvfWy1d1z_r8ZosLrM7rtHcVLHEGVhpM9jSNcBOpSlyyvUY_P2LVU1s/s1600/biggrin.gif' alt='' class='smiley'/>");_str=_str.replace(/:p/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFzqeDaoWEBMzUkhBUX9BygMLf2nDVLFrv3ED8EMdaZwKtqW_GutHzahTSJUeoX0mWpszgw6xniHAmYUU541earx0YuY-4ZfTgyxdm8Li8posnYgfRm9KWhc1kY0Ma6rpmQS4lEnHzCZ4/s1600/tongue.gif' alt='' class='smiley'/>");_str=_str.replace(/:\(\(/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsm_FO9U8R2p3ZA4ywKocSXcI9uWN-8GEWxc2KH-wjPMQBNu6ZS3usrdbsdFPuwf_krZcdSlc9ncWUn9vf5y_rEnlMQ60rMdyHaWomC3z3O6njKZryCcHSD73SBGBeJHgC3QEpueSg-Ds/s1600/cry2.gif' alt='' class='smiley'/>");_str=_str.replace(/:\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1y0_f9v3x3-ECFw7ZB52ZisJDmAoo8QeXPFq-tyo1kmE0JWPUDu6C6UMOtt35LlZu32wiWi6SIpjOT7Eb6qekLrbrScfwpWokbeRv0uuzr3Tb1z0Ty5eTZiicgWTKhqSaQwK5U11_0R4/s1600/smile3.gif' alt='' class='smiley'/>");_str=_str.replace(/:\(/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxdxPJOBLnBA2skxB0md4iRGBpSggvIgini3yh2_3skw9iplwo2Sbjm2ktGtzC3G19NIH6vpe9syI_qKZ7ErDgPfgUUx8Tnwzu5lzSLLcRuocOYdJ4rLEWSgcKDV4c5upxYr-j91O_XnU/s1600/sad.gif' alt='' class='smiley'/>");_str=_str.replace(/:-\?/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHiGmggetlHnFrn48meBEI6bpPWWzcrS1PZe7aVIR5GuGUROSzteEZB-OvEAMM79VRL_FCaquH6zq5niHrutMeX9hsSg-bETrh1AribH2EIpFU6wOznZGExZZ8GWbCIsfE8a8KnkWQzQo/s1600/think.gif' alt='' class='smiley'/>");_str=_str.replace(/d\(/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB6SyyXI4KhysFS9wJW4jRg3kqodOcaFbgelvvTc5xjsWxFJH7covOeD4H5poCNecNK8kYKMfxXqjd12C6bTEIrG_5sR4tH9zqBRuP5MM08vwBpKnwJ-CZpvmxLtjMWWBzIIHzP74_YcU/s1600/doh.gif' alt='' class='smiley'/>");_str=_str.replace(/:-o/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAoriEugL7qKvO-uqSPXV2QByLlSJqY8DqHI8WK4iCfUIAhzld8Qk6myoadafHbijBf3SERulF_y5zk-k29Ysn7cCnCBXCQdeKE8ZASGIBqNU9CbB3YylEaSqp_2J9w7NNgmsY5-BvzdA/s1600/shock.gif' alt='' class='smiley'/>");_str=_str.replace(/:-f/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpjFrNwzPR0K1jM1i8oi7V21mamwyeERkVqS96AAQmLCA7dDsCY2z69R9DmvtgzRpX2R1LRGXzTbJpD8e0IdVeJud0vg7CWbDklEAu9WH2i_aTzScngnFwfZrqS5RBRF__cZUIzLhdE4s/s1600/flowers1.gif' alt='' class='smiley'/>");_str=_str.replace(/:-ss/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsnDbsnv04zGB5zHPOYLeb9fc4y3ybZWWQMSuhUFxiWHN5VhW-bPpzqlnYrm5Ih3zRdXr9F6dfr203cFzwtJTtq1NiEewCWwNlkjOJmmGRLhoyvYLYDGaLXhXeNViaGKEJwpQNgGL6_VI/s1600/unsure.gif' alt='' class='smiley'/>");_str=_str.replace(/b-\(/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6zUNIxyZlqPDcT4n6FWQTMxXoWr2GbJkBhIYVLNJ5EbbiumrdfdThoREGAIbE96Q-r5Cky5EAuKU_k6R_0ES-9ElZEceGkniG1Hi2_8UUE7Yi2sprnHKcnNVX27baOxc71bvRekYQGJc/s1600/threaten.gif' alt='' class='smiley'/>");_str=_str.replace(/h-\(/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXBCcbnNdCLOrUv3H9ifkZAGJDOqpgmezTVepikvuQkEa-gPSp7w39es8MNxWhI8xXi_m_j5CWLy43TOfJhcRVUr4ygSwqSdxbsSG4img-A2PKJ90yqEyJNiF7qbZ6pqvH1pSKcKrj6Pg/s1600/help.gif' alt='' class='smiley'/>");_str=_str.replace(/g-\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGk54NqIn2oURSydia7vmks6x9BnSuED9s3G4P6V5ArSC4nTk0oHNgBNEBlDSs2n0urOyeaZMeMYbDNIpAf4Kc0nsEb9zWN7_iWb56VeWs2WrRFcyOdHoo48TV-EvZeP1fXFjxFjv16kE/s1600/good.gif' alt='' class='smiley'/>");_str=_str.replace(/5-\p/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqKLB53GTWWnVVffPjUeFZQspOT_jqn3SfyZzNyNVpVyQavsiXTIQkyaIEUcxaG-TvM6WPBQb3kS2ffzGDcOR5tXmHy_yRF6ZEjf3vJbPbuFIfCT8150otIlhyphenhyphen2C7g6GpTO6cs9xBEQ0A/s1600/beee.gif' alt='' class='smiley'/>");_str=_str.replace(/y-\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfWP9TNDyI6aK7yDkHzIyBxH5EWo1buIP6ltdt_Sc3KkU5A363_qicRfpV0FMnN9GbOIV0epSCAZFzvaUc6I48Th5sTKF5uYLPzEXFDZ3eOjCv0FXto86ui82La1bkpB__5oTRIc8SiXQ/s1600/yahoo.gif' alt='' class='smiley'/>");_str=_str.replace(/c-\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeaoU4Cw8AYwyNmLA3WILhcD1MO-a3uHYUA6ol-OdU4SDAG0tLwhZdnkCj1H8Q_r4hBqG1-YRbzVCMSGZo40Iq9XqN3RtxONWXyb4FsUkw_nZmq4WoUINkSrpZ7Vq4l70Tdb-7_JzoQo8/s1600/crazy.gif' alt='' class='smiley'/>");_str=_str.replace(/s-\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2bha2Yzp4Ut5Lay_qR7LbEWsNBZZ4e0RFU6aYVmrjy4yrDFJ_Lr_d19mMp15CQhde-A5gyGR6uT4KpYlH_pqb3Z3Q_IY7J536F2wNBjuchoEdereb7W7bE9k2f6f9U89MyqtaWc7fjlU/s1600/spiteful.gif' alt='' class='smiley'/>");_str=_str.replace(/d-\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHqGiCHSOCmdFQ5-hgLQnaRFQQXpewjG829rDpinLKZu6YKyzy-H4FsccoM_zJVbk_z4R-kvtbd4fjSkxrXvMcvxXgi48UQRjreq0YeNqHSdSVFzLfLhsonjXYO7GdSiaYBYiMA0Qo9po/s1600/drinks.gif' alt='' class='smiley'/>");_str=_str.replace(/w-\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirFVNkCnfQC6gXtQx6rq8bBrRNeLnVw7RqiRhvbsb3Nk-j9rlPO5RBxUJJ1QSe2Vf7Bf67JHeq9JVaz5CHtLhoDMFkDrK4CYrUEWHtxBuYOTMh46UhDlvJhg0HpTw3hktAyGizfQYmWIk/s1600/cheer.gif' alt='' class='smiley'/>");_str=_str.replace(/:-\h/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjObwbgcpSdYYVnEnMRaw7MRjsmphiBjT18YrZzx-Rq_f4sfrO3M_htl7S9SfuMpDGrzKddwFHu1Gn0YUeRgJflKSVjLgu1tznOYOPiSR257fnitLQa-xVYvJ-0YNkK-5kLRHMQ-zFOH1Q/s1600/hi+2.gif' alt='' class='smiley'/>");_str=_str.replace(/:X/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB0GuS-elWXCwhD4QfBDvas0L-lVS_-kC7UGgCX041KEMXPzlluPdeiQCrSifd2e0x6oHAEIz0QL9WSGX_OapNrG9JsoJnfk25VJU46Cv7Dp8TD0vKIl3ihzhxBfJznLgZ2d0_wr-8l4U/s1600/give_heart.gif' alt='' class='smiley'/>");_str=_str.replace(/:\-\*/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVLKCWVdGJCMyRdooSdZWyiggvsP7GK7MOz8Y1EcQ-6Cc_G4tYt0u_5LS-4fCcrrfxfgSOo6BhcTiP1-jF7Nd2_gsPw_kUmpg0rYcKmZ2atM_6Me80NeW6xJ9pl6ph03tB7zODvAu8L-Q/s1600/air_kiss.gif' alt='' class='smiley'/>");_str=_str.replace(/=\)\)/gi,"<img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9LV30fIjhXGY0MaHtmSrrqqcEXhwA3GrKUrkBDaAhkaBZPqJvfESrlBVxjMuYGQ_4AP1-1GioqVLI2jpTeENDWS1LuH8DAqw43e9k8IkGVPHKZl_N0-4sRD9DDPSDVHSyEr99MLI5vNM/s1600/rofl.gif' alt='' class='smiley'/>");b.item(i).innerHTML=_str;}}}
//]]>
</script>
Note: ignore the next 5-8 steps if you have threaded comments!

Step 5. Find this code snippet:
<b:loop values='data:post.comments' var='comment'>
Step 6. Paste the following line just above it:
<div id='smileys'>
Step 7. Find the following tag and look carefully, it should be somewhere below the code from step 5:
</b:loop>
Step 8. Paste the below div tag just AFTER it:
</div>
Step 9. Now find this code:

a) For previous commenting system:
<data:blogTeamBlogMessage/>
Note: if you'll find it like 4 times, stop at the second one (press Enter 2 times).

b) For threaded commenting system find the second (2nd) and fourth (4th) occurrence of the line below:
<a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>
Step 10. Just AFTER the line above, add this code:
<b:if cond='data:blog.pageType == &quot;item&quot;'><script type='text/javascript'>
//<![CDATA[
function moreSmilies() {
    document.getElementById('smiley-more').style.display = 'inline';
    document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:lessSmilies()">Hide Emoticons</a>';
}
function lessSmilies() {
    document.getElementById('smiley-more').style.display = 'none';
    document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:moreSmilies()">Show Emoticons</a>';
}
//]]>
</script>
<div class='emoticons'>
<span id='smiley-more' style='display: none;'>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1y0_f9v3x3-ECFw7ZB52ZisJDmAoo8QeXPFq-tyo1kmE0JWPUDu6C6UMOtt35LlZu32wiWi6SIpjOT7Eb6qekLrbrScfwpWokbeRv0uuzr3Tb1z0Ty5eTZiicgWTKhqSaQwK5U11_0R4/s1600/smile3.gif'/><div class="emos">:)</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxdxPJOBLnBA2skxB0md4iRGBpSggvIgini3yh2_3skw9iplwo2Sbjm2ktGtzC3G19NIH6vpe9syI_qKZ7ErDgPfgUUx8Tnwzu5lzSLLcRuocOYdJ4rLEWSgcKDV4c5upxYr-j91O_XnU/s1600/sad.gif'/><div class="emos">:(</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL7DCmw-KcuMkOu_LOTGTlR2BU-c2JmKI-KOKqsIKkEVJaJISW0uCR9O4peBcA9IyvpPLpw4ZtLPU7Uvhx_N5JPk_lN17NfwE734PhWb1y4-AAjreYQZXCXHbtNU4dxMBlSxhEpuW1kLo/s1600/taunt.gif'/><div class="emos">:))</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsm_FO9U8R2p3ZA4ywKocSXcI9uWN-8GEWxc2KH-wjPMQBNu6ZS3usrdbsdFPuwf_krZcdSlc9ncWUn9vf5y_rEnlMQ60rMdyHaWomC3z3O6njKZryCcHSD73SBGBeJHgC3QEpueSg-Ds/s1600/cry2.gif'/><div class="emos">:((</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9LV30fIjhXGY0MaHtmSrrqqcEXhwA3GrKUrkBDaAhkaBZPqJvfESrlBVxjMuYGQ_4AP1-1GioqVLI2jpTeENDWS1LuH8DAqw43e9k8IkGVPHKZl_N0-4sRD9DDPSDVHSyEr99MLI5vNM/s1600/rofl.gif'/><div class="emos">=))</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy3z9LYMbSw0nVrqGdQs_stb5D_mlzGqZ3yuPN8jMA-RbIwAULlFLqLIDsW35EoWoE2GcMaxhu-D16u1-CB-I-pCIHWEtYtS5sCHTyjgNrJRcoiNMs0bV6_VS1abQK3iEgMGxtSXgm5Cw/s1600/suicide.gif'/><div class="emos">=D&gt;</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJfh4H9USypKe4y3NXpQ1_Qx0X_k0bU-GMB-TDz8VRyfhSfcqvnz6bw6Ia6PdCatULOQgm0dMrZjWBMP4lQfp7vvfWy1d1z_r8ZosLrM7rtHcVLHEGVhpM9jSNcBOpSlyyvUY_P2LVU1s/s1600/biggrin.gif'/><div class="emos">:D</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFzqeDaoWEBMzUkhBUX9BygMLf2nDVLFrv3ED8EMdaZwKtqW_GutHzahTSJUeoX0mWpszgw6xniHAmYUU541earx0YuY-4ZfTgyxdm8Li8posnYgfRm9KWhc1kY0Ma6rpmQS4lEnHzCZ4/s1600/tongue.gif'/><div class="emos">:P</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAoriEugL7qKvO-uqSPXV2QByLlSJqY8DqHI8WK4iCfUIAhzld8Qk6myoadafHbijBf3SERulF_y5zk-k29Ysn7cCnCBXCQdeKE8ZASGIBqNU9CbB3YylEaSqp_2J9w7NNgmsY5-BvzdA/s1600/shock.gif'/><div class="emos">:-O</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHiGmggetlHnFrn48meBEI6bpPWWzcrS1PZe7aVIR5GuGUROSzteEZB-OvEAMM79VRL_FCaquH6zq5niHrutMeX9hsSg-bETrh1AribH2EIpFU6wOznZGExZZ8GWbCIsfE8a8KnkWQzQo/s1600/think.gif'/><div class="emos">:-?</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsnDbsnv04zGB5zHPOYLeb9fc4y3ybZWWQMSuhUFxiWHN5VhW-bPpzqlnYrm5Ih3zRdXr9F6dfr203cFzwtJTtq1NiEewCWwNlkjOJmmGRLhoyvYLYDGaLXhXeNViaGKEJwpQNgGL6_VI/s1600/unsure.gif'/><div class="emos">:-SS</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpjFrNwzPR0K1jM1i8oi7V21mamwyeERkVqS96AAQmLCA7dDsCY2z69R9DmvtgzRpX2R1LRGXzTbJpD8e0IdVeJud0vg7CWbDklEAu9WH2i_aTzScngnFwfZrqS5RBRF__cZUIzLhdE4s/s1600/flowers1.gif'/><div class="emos">:-f</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB6SyyXI4KhysFS9wJW4jRg3kqodOcaFbgelvvTc5xjsWxFJH7covOeD4H5poCNecNK8kYKMfxXqjd12C6bTEIrG_5sR4tH9zqBRuP5MM08vwBpKnwJ-CZpvmxLtjMWWBzIIHzP74_YcU/s1600/doh.gif'/><div class="emos">d(</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVLKCWVdGJCMyRdooSdZWyiggvsP7GK7MOz8Y1EcQ-6Cc_G4tYt0u_5LS-4fCcrrfxfgSOo6BhcTiP1-jF7Nd2_gsPw_kUmpg0rYcKmZ2atM_6Me80NeW6xJ9pl6ph03tB7zODvAu8L-Q/s1600/air_kiss.gif'/><div class="emos">:-*</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6zUNIxyZlqPDcT4n6FWQTMxXoWr2GbJkBhIYVLNJ5EbbiumrdfdThoREGAIbE96Q-r5Cky5EAuKU_k6R_0ES-9ElZEceGkniG1Hi2_8UUE7Yi2sprnHKcnNVX27baOxc71bvRekYQGJc/s1600/threaten.gif'/><div class="emos">b-(</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXBCcbnNdCLOrUv3H9ifkZAGJDOqpgmezTVepikvuQkEa-gPSp7w39es8MNxWhI8xXi_m_j5CWLy43TOfJhcRVUr4ygSwqSdxbsSG4img-A2PKJ90yqEyJNiF7qbZ6pqvH1pSKcKrj6Pg/s1600/help.gif'/><div class="emos">h-(</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGk54NqIn2oURSydia7vmks6x9BnSuED9s3G4P6V5ArSC4nTk0oHNgBNEBlDSs2n0urOyeaZMeMYbDNIpAf4Kc0nsEb9zWN7_iWb56VeWs2WrRFcyOdHoo48TV-EvZeP1fXFjxFjv16kE/s1600/good.gif'/><div class="emos">g-)</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqKLB53GTWWnVVffPjUeFZQspOT_jqn3SfyZzNyNVpVyQavsiXTIQkyaIEUcxaG-TvM6WPBQb3kS2ffzGDcOR5tXmHy_yRF6ZEjf3vJbPbuFIfCT8150otIlhyphenhyphen2C7g6GpTO6cs9xBEQ0A/s1600/beee.gif'/><div class="emos">5-p</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfWP9TNDyI6aK7yDkHzIyBxH5EWo1buIP6ltdt_Sc3KkU5A363_qicRfpV0FMnN9GbOIV0epSCAZFzvaUc6I48Th5sTKF5uYLPzEXFDZ3eOjCv0FXto86ui82La1bkpB__5oTRIc8SiXQ/s1600/yahoo.gif'/><div class="emos">y-)</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeaoU4Cw8AYwyNmLA3WILhcD1MO-a3uHYUA6ol-OdU4SDAG0tLwhZdnkCj1H8Q_r4hBqG1-YRbzVCMSGZo40Iq9XqN3RtxONWXyb4FsUkw_nZmq4WoUINkSrpZ7Vq4l70Tdb-7_JzoQo8/s1600/crazy.gif'/><div class="emos">c-)</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2bha2Yzp4Ut5Lay_qR7LbEWsNBZZ4e0RFU6aYVmrjy4yrDFJ_Lr_d19mMp15CQhde-A5gyGR6uT4KpYlH_pqb3Z3Q_IY7J536F2wNBjuchoEdereb7W7bE9k2f6f9U89MyqtaWc7fjlU/s1600/spiteful.gif'/><div class="emos">s-)</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHqGiCHSOCmdFQ5-hgLQnaRFQQXpewjG829rDpinLKZu6YKyzy-H4FsccoM_zJVbk_z4R-kvtbd4fjSkxrXvMcvxXgi48UQRjreq0YeNqHSdSVFzLfLhsonjXYO7GdSiaYBYiMA0Qo9po/s1600/drinks.gif'/><div class="emos">d-)</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirFVNkCnfQC6gXtQx6rq8bBrRNeLnVw7RqiRhvbsb3Nk-j9rlPO5RBxUJJ1QSe2Vf7Bf67JHeq9JVaz5CHtLhoDMFkDrK4CYrUEWHtxBuYOTMh46UhDlvJhg0HpTw3hktAyGizfQYmWIk/s1600/cheer.gif'/><div class="emos">w-)</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjObwbgcpSdYYVnEnMRaw7MRjsmphiBjT18YrZzx-Rq_f4sfrO3M_htl7S9SfuMpDGrzKddwFHu1Gn0YUeRgJflKSVjLgu1tznOYOPiSR257fnitLQa-xVYvJ-0YNkK-5kLRHMQ-zFOH1Q/s1600/hi+2.gif'/><div class="emos">:-h</div></div>
<div class="itemo"><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB0GuS-elWXCwhD4QfBDvas0L-lVS_-kC7UGgCX041KEMXPzlluPdeiQCrSifd2e0x6oHAEIz0QL9WSGX_OapNrG9JsoJnfk25VJU46Cv7Dp8TD0vKIl3ihzhxBfJznLgZ2d0_wr-8l4U/s1600/give_heart.gif'/><div class="emos">:X</div></div>
</span>
<span id='smiley-toggle'><a href='javascript:moreSmilies()'>Show Emoticons <img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1y0_f9v3x3-ECFw7ZB52ZisJDmAoo8QeXPFq-tyo1kmE0JWPUDu6C6UMOtt35LlZu32wiWi6SIpjOT7Eb6qekLrbrScfwpWokbeRv0uuzr3Tb1z0Ty5eTZiicgWTKhqSaQwK5U11_0R4/s1600/smile3.gif'/></a></span>
</div></b:if>
Step 11. Finally, find this tag:
]]></b:skin>
Step 12. Add the CSS code just above ]]></b:skin>
.itemo{float:left;font-size:11px;height:30px;line-height:1.2;padding:10px 0;text-align:center;width:85px;}
span#smiley-toggle{clear:both;padding:15px 10px;float:left;font:bold 14px 'Oswald', sans-serif;}
span#smiley-toggle a{text-decoration:none;}
#smiley-toggle img{vertical-align:bottom;}
img.smiley{vertical-align:bottom;}
Step 13. Save the changes by clicking the 'Save Template' and you're done adding emoticons in Blogger comments. Enjoy!

How To Add or Change Favicon on Blogger Blogspot

Favicon (Favorites Icon) is the small picture (usually 16px x 16px in size) you see beside some site's name in your browser's address bar. Having your own Favicon with a nice graphical reminder of your site is a good way to grab visitors attention. Blogger users can add a custom favicon on their blogs by going to the 'Layout' section and click on the 'Edit' link on the "Favicon" element.

"For many bloggers, having a custom favicon (the tiny image displayed in your browser’s window or tab) is the finishing touch that ties together the design and identity of a great looking blog. Today, we're pleased to announce that Blogger in Draft users can now add a customized favicon to their blog." - Blogger in Draft

How To Add a Favicon to Your Blogger Blog

Step 1. Log into your Blogger's Dashboard, then go to the "Layout" and click on the "Add a Gadget" link


Step 2. Click on the "Edit" link on the "Favicon" setting above the navbar element.


Step 3. A pop-up window will open where you can search for an image in your hard drive that will replace the default Favicon image. Click on the "Browse" button and search for your favicon (please note that it should have the .ico extension), then click on the "Save" button.


Step 4. Now you should see your own Favicon instead of the Blogger's default favicon.


Please keep in mind that it might take some time until your new Favicon will appear in your Browser's tab or window.

If you want to add animated favicons to your Blogger blogs, then use the following method instead.

How to add an animated Favicon in Blogger

Step 1. Log in to your Blogger account > Template > Edit HTML.


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box. Type or paste the following tag inside the search box and hit Enter to find it:
<b:skin>

Step 3. Paste this code just above it:
<link href="your-favicon-links-goes-here" rel="icon" type="image/gif"/>

animated favicon blogger
Note: replace your-favicon-links-goes-here with your Favicon link location

Here you can find some cool favicons for your site or blog: http://www.favicon.cc/. Just download the favicon you like, upload it on tinypic or on a blogger's post, then copy the link address/direct link.

Step 4. Save the Template and you're done adding the Favicon in your Blogger blog.

How to number comments in Blogger/BlogSpot

This cool Blogger trick will help you to add comment count inside a speech bubble, so that you & your readers can use the numbers to mention or point to a particular comment on any of your posts. Besides this, numbering your comments might help you to improve the look and feel of your blog.

Note: This works with the previous blogger commenting system, so if you want to apply this trick, first you need to remove the Blogger threaded comments. See here How to remove Blogger threaded comments
UPDATE! Now you can have a comment bubble in your threaded comments also! For more info, please read this tutorial: How to Add Numbered Comments In Threaded Comments
blogger blogspot, tricks

How to add numbered comments on our Blogger/Blogspot blog

how to blog, blogspot blogger

Step 1. From your Blogger Dashboard, go to Template and click on the Edit HTML button:


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box:

Step 3. Type or paste the following code inside the search box and hit Enter to find it:
<b:loop values='data:post.comments' var='comment'>
Step 4. Just above it, paste this code:
<script type='text/javascript'>var CommentsCounter=0;</script>
Step 5. The, find this code:
<data:commentPostedByMsg/>
Step 6. And just below/after it, copy and paste this:
<!--comments-count-starts-->
<span class='comments-number'>
<a expr:href='data:comment.url' title='Comment Link'>
<script type='text/javascript'>
CommentsCounter=CommentsCounter+1;
document.write(CommentsCounter)
</script>
</a>
</span>
<!--comments-count-stops-->
Step 7. Find (CTRL+F) this tag:
</head>
Step 8. Just above the </head> tag, paste this code:
<!-- comments-count-starts-->
<style type="text/css">
.comments-number a:link, .comments-number a:visited {
color: black !important;
text-decoration: none !important;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge3AVcXCiR9Gc7PFH8qzwDOdrXHEzelyhn-hrhBZyVksh0U3cEaegUL_nSDXEEa0UaLG2w-nRr41HAw3FV4RA0AQw2nr993Nvcadwq-YS1zoR_1WDsFaSWZiHMLTdOUSUOq0gvc2ci4VLw/s1600/comment+bubble+1.png) no-repeat;
width: 50px; /*image-width size*/
height: 48px; /*image-height size*/
float: right;
display: block;
margin-right: 5px;
margin-top: -15px; /*comments-counter position*/
text-align: center;
font-family: 'Century Gothic','Lucida Grande',Arial,Helvetica,Sans-Serif;
font-size: 15px;
font-weight: normal;
}
.comments-number a:hover, .comments-number a:active {
color: #1BA0E1 !important;
text-decoration: none !important;
}
</style>
<!-- comments-count-stops-http://blogger.chipchuck.com-->

Note:
  • To change the comment bubble, replace the text in red from above with your address
  • To change the color of the numbers, replace the text in blue with the hex value of your color. This tool can help you to pick up any color that you may need: Color code generator

Comment Bubbles 

To choose a comment bubble, right-click on the image and select "Copy Image Address/Location":

how to blogblogger blogspotblogspot blogger, how to blogwidget blogger blogspotblogs, how to blogblogspot or blogger, how to blogtutorials, how tocomments, how to, blogspot bloggernew comment, how to blogblog design, bloggerblogger.com

IMPORTANT: You can use any image instead of the one linked in the code above (STEP 8) but after you need to change the size values (width and height), so that the numbers inside the bubble won't float outside of it.

Step 9. Save the template and enjoy your comments :]

Related tutorial: Add a Comment Bubble to Blogger Post Titles

Monday, April 16, 2012

How to Add A Comment Count Bubble To Blogger Post Titles

A comment bubble (or speech balloon) with the current number of comments displayed on each blogger post titles might be an excellent addition if you want to make your blog more attractive and engaging. Having a comment bubble icon could help you not only to get more comments on your blog but may, as well, give your visitors a hint about which are the most popular posts on your blog. When a post has received many comments, it could reflect the popularity of your posts and thus, make your readers and visitors to be more interested in reading them.
If you want to add a comment or speech bubble to your Blogger blog, then follow the next steps below:


Step 1. Log in to your Blogger Dashboard > go to Template > click the Edit HTML button

comment bubble, speech bubbles, blogger comment bubble

Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the Blogger search box
blogger search box

Step 3. Find the following tag in your template:
]]></b:skin>
Note: before anything, you need to click on the small arrow next to it and after the code has expanded, search for the ]]></b:skin> tag again

Step 4. Just above ]]></b:skin> add the following CSS styling:
.comment-bubble {
float : right;
width : 48px;
height : 48px;
background : url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm5I-VmCdRc7Aby9W5HbclmpDz70jeReiUeWYjZKtOriz49DuXOvTMrFUzvy3zhWiFwNfnchWNQsJcpGrQUTd-Ep8ggQlezP_JOk7MGFISpcooXwtlAsa1BrOUfz8WrJ-G1-yXjLF1bcBM/s1600/speech+bubble+green.png);
background-repeat: no-repeat;
font-size : 18px;
margin-top : -15px;
margin-right : 2px;
text-align : center;
}
Step 5. Now find this code:
<b:if cond='data:post.title'>
<h3 class='post-title entry-title'>
Note: If you can't find it, search this code instead:
<b:if cond='data:post.title'>
      <h3 class='post-title entry-title' itemprop='name'>
Step 6. And add this code immediately after it:
<b:if cond='data:post.allowComments'>
<a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='color: #ffffff; font-size: 18px; font-weight: bold;'><data:post.numComments/></a>
</b:if>
Note:
  • to change the color of the comments number, replace #ffffff with the hex value of your color;
  • to change the font size, increase/decrease the 18px value;
Step 7. Preview your template and if everything is ok, click on Save Template.

Comment Bubbles 

You can choose one of the images below - right click on the image you like and select "Copy Image Address/Location", then replace the blue code from step 4 with the address you just copied.

bubble comment count, bubble blogger postsblogger comments, comment countblogger blogspot, blogger commentsblogger bubble comment countcomments in blogger titlesblogger tips, blogger tricksblogger widgets, bubble comment countbubble comment countBubble Comment CountBubble Comment Count, blogger blogspot


That's it! Enjoy!!! (:

Do you need to add more info on your blog posts? Then I recommend you reading this tutorial:

Search This Blog

Recent Post

Recent Posts Widget

Blog Archive