Thursday, August 12, 2010

How to - Animated Tag Cloud

Some of you might have noticed some blogs that have animated revolving tag clouds just like this:

So, what do I need that for? It's a good way for your readers to search for your blog posts according to their respective categories. I think this also reduces your site's bounce rates.

You'll also learn how you could modify it's dimensions so that you could fit it in your sidebars. Again, since I'm a using blogger, I'll be telling you how you could this through your blogger account. So here we go!

1. As all of the basics, login to your blogger account.

2. Go to your 'Design' tab, then click on the 'Edit HTML' sub-tab. Just to be safe, backup your
files by clicking on 'Download Full Template'. Once done, tick on the 'Expand Widget Template'.

3. Now, scroll down and look for this tag:

<b:section class='sidebar' id='sidebar' preferred='yes'>
TIP: If your having trouble finding it through scanning, try hitting on Ctrl+F and search for it.

4. Add this code right after the code in the number 3 step.

<b:widget id='Label99' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<div class='widget-content'>
<script src='' type='text/javascript'/>
<div id='flashcontent'>Blogumulus by <a 
href=''>Roy Tanck</a> and <a 
<script type='text/javascript'>
var so = new 
 &quot;tagcloud&quot;, &quot;240&quot;, 
&quot;300&quot;, &quot;7&quot;, 
// uncomment next line to enable transparency
//so.addParam(&quot;wmode&quot;, &quot;transparent&quot;);
so.addVariable(&quot;tcolor&quot;, &quot;0x333333&quot;);
so.addVariable(&quot;mode&quot;, &quot;tags&quot;);
so.addVariable(&quot;distr&quot;, &quot;true&quot;);
so.addVariable(&quot;tspeed&quot;, &quot;100&quot;);
&quot;<tags><b:loop values='data:labels' 
var='label'><a expr:href='data:label.url' 
so.addParam(&quot;allowScriptAccess&quot;, &quot;always&quot;);
<b:include name='quickedit'/>
 5. Click on 'Save template' and your done! If your code shows an error, just upload the full template you've downloaded before, and follow the steps again.


A. You can change the size of the gadget by looking for these codes:

&quot;240&quot;, &quot;300&quot
 The 240 is the height and 300 is the width. Since we all have different blog templates and sidebars, you'll probably have to do this.

B. You can check the background color and text color so that it would match your site's color scheme. Just look for this code:

Replace the #ffffff with the hexadecimal color code for your matching your site. To save the hassle, here's a free online color picker.

C. You can also change the font size by looking for this code:
The default font size is 7, you can change it if you want to. Just change the number 7 into whatever number you want.

D. For the text color, look for this code:
 Change the 333333 into a hexadecimal font color with the color picker site I've provided.

Once you've made the changes, click on the 'Save Template' button.

E. You can also change the position of your gadget/widget by going to your blogger's 'Design' tab and the 'Page Element' subtab. And drag it accross or wherever you want it.

Also, your tag cloud would appear crowded, since all of your blog tags are in there, so what you need to do is change it. Here are the steps:
  • In the 'Page Elements' sub tab, look for your Label or Tag Cloud gadget and click on 'Edit'
  •  A pop-up window will appear. The code I've provided you will have a gadget/widget title of 'Labels' you can change it to whatever you like. Now, I mentioned that your label will be crowded, since the default setting was set to 'All Labels'. Now, change it to 'Selected Labels'. Click on the 'edit' link to choose the labels you want to appear in your cloud.
 The labels box would look like this. Just tick or untick the labels you like. Then click on 'Done' and click on the 'Save' button.

  • Hit on the 'Save' button again. And your done!
Your thoughts? 

Enjoy using your Tag Clouds in your own Blogger blogs! Please feel free to share or syndicate this page with your favorite bookmarking service if you think it is worth a mention, or subscribe to the newsfeed to learn of more great tutorials as they are posted.
Minute Maid Pulpy Juice Drink!
Minute Maid Pulpy Juice Drink!