<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AEXT.NET MAGAZINE &#187; Tags Cloud</title>
	<atom:link href="http://aext.net/tag/tags-cloud/feed/" rel="self" type="application/rss+xml" />
	<link>http://aext.net</link>
	<description>How to Create a Website</description>
	<lastBuildDate>Wed, 30 May 2012 05:03:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Make a most beautiful tags cloud on over the world with Facelift and jQuery</title>
		<link>http://aext.net/2009/08/make-a-most-beautiful-tags-cloud-on-over-the-world-with-facelift-and-jquery/</link>
		<comments>http://aext.net/2009/08/make-a-most-beautiful-tags-cloud-on-over-the-world-with-facelift-and-jquery/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 16:10:32 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Facelift]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Learning jQuery]]></category>
		<category><![CDATA[Tags Cloud]]></category>

		<guid isPermaLink="false">http://aext.net/?p=384</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2009/08/make-a-most-beautiful-tags-cloud-on-over-the-world-with-facelift-and-jquery/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2009/08/make-a-most-beautiful-tags-cloud-on-over-the-world-with-facelift-and-jquery/" height="61" width="51" /></a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2009/08/make-a-most-beautiful-tags-cloud-on-over-the-world-with-facelift-and-jquery/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2009/08/make-a-most-beautiful-tags-cloud-on-over-the-world-with-facelift-and-jquery/" height="61" width="51" /></a></p><p>In the past, the tag clouds was used on many website, but nowaday, it&#8217;s hard to find a website which using tags cloud. In my opinion, it&#8217;s caused by the display of tags cloud. We feel boring with its banality. So why we dont make up for it, and replace the font text too boring by any font we love. Today, I&#8217;ll make a most beautiful tags cloud using Image Replacement Solution Facelift, some CSS code and jQuery. It&#8217;s really easy and the result is so surprising.</p>
<div class="bigimage"><a href="http://aext.net/example/awesome-tags-cloud/"><img class="alignnone size-full wp-image-388" title="Most Beautiful Tags Cloud on over the world" src="http://aext.net/wp-contents/uploads/2009/08/01.jpg" alt="Most Beautiful Tags Cloud on over the world" width="500" height="192" /></a></div>
<p><span id="more-384"></span><br />
Take a look at the Demo and Download right below:</p>
<div class="demo-download">
<ul>
<li><a href="http://aext.net/Downloads/AwesomeTagsCloud.rar" target="_blank"><span class="downloadit">Download</span></a></li>
<li><a class="demoit" href="http://aext.net/example/awesome-tags-cloud/">Demo</a></li>
</ul>
</div>
<p>I think just looking for the demo, you guys have already understand how it works, but unless the explaining, it&#8217;s not a tutorial anymore. (I just want you guys to stay on my website one more minute, hehehe ^^)</p>
<p><strong>Choose a font that you think it&#8217;s perfect for tags cloud</strong><br />
There lots of font you can choose. In this tutorial, I&#8217;m using <a href="http://www.dafont.com/loyal-fame.font">Loyal Fame</a>. I suggest you all the various font in Script type. It&#8217;s just cool. Here below is the some sites that you can get in there and download font for free.</p>
<p>Updated: Take a look at my font post <a title="Permanent Link to 20+ Awesome handwriting Fonts for a beautiful design you SHOULD NOT miss" href="../2009/08/20-awesome-handwriting-fonts-for-a-beautiful-design-you-should-not-miss/" rel="bookmark">20+ Awesome handwriting Fonts for a beautiful design you SHOULD NOT miss</a>.</p>
<ul>
<li><strong><a href="http://www.dafont.com/">Dafont</a></strong></li>
<li><a href="www.1001freefonts.com">1001 <strong>freefonts</strong></a></li>
<li><strong><a href="www.urbanfonts.com/">Urbanfonts</a></strong></li>
<li><strong><a href="http://www.ddfont.com/">DDFont</a></strong></li>
<li><strong> &#8230;&#8230;</strong></li>
</ul>
<p><strong>The Tags</strong></p>
<p>Simple and easy as copy and paste these HTML code below into your page. The tags below is just an example. In WordPress, Blogger or any others Content Management System maybe vary a little bit.</p>
<pre class="html">Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">ul</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag1"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#java"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>java<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag5"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#jQuery"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>jQuery<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag3"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#Resources"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>Resources<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag5"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#web-design"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>web design<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag2"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#Kwicks"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>Kwicks<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag5"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#CSS"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>CSS<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag3"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#Mootools"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>Mootools<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag2"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#Wordpress"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>WordPress<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag2"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#php"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>blogger<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag4"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#Tutorial"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>Tutorial<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag5"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#Javascript"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>Javascript<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â Â <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="tag2"</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">a</span> <span style="color: #ff0000;">href</span><span style="color: #0000ff;">="#tricks"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="flir"</span><span style="color: #0000ff;">&gt;</span>tricks<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">a</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>
Â Â <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">ul</span><span style="color: #0000ff;">&gt;</span></pre>
<p>Remember to set the class name of the link. Because we have lots of link in webpage, and we will use this class to identify the link we want to replace.</p>
<p><strong>CSS code:</strong></p>
<p>That&#8217;s not important to make up the link using CSS. But the size of tags we have to define. And one more thing, without css styling, the tags can not display as the cloud and we will not call it tags cloud, right?</p>
<p>The CSS code that I&#8217;m using in this tutorial will be:</p>
<pre class="css">body <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00aa00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00aa00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00aa00;">:</span><span style="color: #cc00cc;">#FFF</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00aa00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">80</span>%</span> Trebuchet MS<span style="color: #00aa00;">,</span> Arial<span style="color: #00aa00;">,</span> Helvetica<span style="color: #00aa00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00aa00;">:</span><span style="color: #cc00cc;">#555</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>

a <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00aa00;">:</span><span style="color: #cc00cc;">#222</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>

img <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00aa00;">:</span><span style="color: #993333;">none</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>

<span style="color: #808080; font-style: italic;">/* Tag cloud */</span>

Â  Â  <span style="color: #6666ff;">.tags</span> <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00aa00;">:</span><span style="color: #933;">500px</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00aa00;">:</span> <span style="color: #933;">150px</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00aa00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00aa00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00aa00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>
<span style="color: #6666ff;">.tags</span> ul <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00aa00;">:</span><span style="color: #933;">1em</span> <span style="color: #cc66cc;">0</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00aa00;">:</span><span style="color: #933;">.5em</span> <span style="color: #933;">10px</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00aa00;">:</span><span style="color: #993333;">center</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>
<span style="color: #6666ff;">.tags</span> li <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00aa00;">:</span><span style="color: #933;">0px</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00aa00;">:</span><span style="color: #933;">5px</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00aa00;">:</span><span style="color: #933;">0px</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00aa00;">:</span><span style="color: #933;">5px</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00aa00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00aa00;">:</span><span style="color: #993333;">none</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00aa00;">:</span><span style="color: #993333;">inline</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>
<span style="color: #6666ff;">.tags</span> li a <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00aa00;">:</span> loyal<span style="color: #00aa00;">,</span> Arial<span style="color: #00aa00;">,</span> Helvetica<span style="color: #00aa00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00aa00;">:</span><span style="color: #993333;">none</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00aa00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00aa00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00aa00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #00aa00;">*</span><span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00aa00;">:</span> <span style="color: #993333;">none</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>
<span style="color: #6666ff;">.tag1</span> a <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00aa00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00aa00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">10</span>%</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>
<span style="color: #6666ff;">.tag2</span> a <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00aa00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">120</span>%</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00aa00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">20</span>%</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>
<span style="color: #6666ff;">.tag3</span> a <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00aa00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">140</span>%</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00aa00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">30</span>%</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>
<span style="color: #6666ff;">.tag4</span> a <span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00aa00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">200</span>%</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00aa00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">80</span>%</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>
<span style="color: #6666ff;">.tag5</span> a<span style="color: #00aa00;">{</span>
Â  Â  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00aa00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">350</span>%</span><span style="color: #00aa00;">;</span>
Â  Â  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00aa00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00aa00;">;</span>
<span style="color: #00aa00;">}</span>

<span style="color: #808080; font-style: italic;">/* // Tag cloud */</span></pre>
<p>Note: Always remember to set the background for the link because Facelift replacement the text by image but can not display the image as transparent unless we set background value. However, with IE, Facelift can not display correct even when set or not set the background. And result I got is:</p>
<div class="bigimage"><a href="http://aext.net/wp-contents/uploads/2009/08/02.jpg"><img class="alignnone size-full wp-image-400" title="02" src="http://aext.net/wp-contents/uploads/2009/08/02.jpg" alt="02" width="500" height="280" /></a></div>
<p>Maybe it&#8217;s a bug of this script maybe not if I get mistake. Sorry to the script&#8217;s author!</p>
<p><strong>Javascript</strong></p>
<p>We will use the Facelift to enable image replacement for text link. Javascript library we need is <a href="http://facelift.mawhorter.net/">Facelift v1.2</a>. There&#8217;re many of tutorials how to install Facelift, and I would like to forward you to:</p>
<ul>
<li><a href="http://divitodesign.com/typography/install-flir-typography-solution-for-the-web/">Install FLIR â€“ Typography Solution For The Web</a></li>
<li><a href="http://net.tutsplus.com/javascript-ajax/how-to-use-any-font-you-wish-with-flir/">How To Use Any Font You Wish With FLIR</a></li>
</ul>
<p>And one more link to help you understand why I&#8217;m using Facelift instead of others script with the same feature. See more <a href="http://thinkclay.com/technology/cufon-sifr-flir">Cufon vs sIFR vs FLIR</a>.</p>
<p><strong>Install the Facelift</strong></p>
<p>Before start to install, you have to download <a href="http://facelift.mawhorter.net/download/">Facelift v1.2</a>. After downloading, extract the archive file into your workspace folder. Inside the facelift folder is a Javascript file named &#8220;flir.js&#8221;. I recommended you not to change its structure if you not sure what you&#8217;re doing. In this tutorial, I&#8217;m not gonna change anything. I put all the script after renamed it into &#8220;js&#8221; folder.</p>
<p><strong>Add Facelift to your webpage:</strong></p>
<pre class="html"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">language</span><span style="color: #0000ff;">="javascript"</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="js/facelift/flir.js"</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></pre>
<p>Add these code below into your webpage to make Facelift works. Make sure you put it before the end of &lt;body&gt; tag.</p>
<pre class="html"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text/javascript"</span><span style="color: #0000ff;">&gt;</span>
Â Â FLIR.init({path:<span style="color: #a31515;">'js/facelift/'</span>});
Â Â FLIR.replace( <span style="color: #a31515;">'a.flir'</span> , <span style="color: #0000ff;">new</span> FLIRStyle({ cFont:<span style="color: #a31515;">'loyal'</span> }) );
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></pre>
<p><strong>Config Facelift with the font you want to display</strong></p>
<p>In above, you see the font will be used is &#8220;loyal&#8221;, right? Did you download the Loyal Fame font at the beginning of my post? <a href="http://www.dafont.com/loyal-fame.font">Download it</a> now and continue to config the Facelift.<br />
Look for file config-flir.php inside Facelift folder and find something like this below:</p>
<pre class="php"><span style="color: #666666; font-style: italic;">// Each font you want to use should have an entry in the fonts array.</span>
<span style="color: #000088;">$fonts</span> <span style="color: #339933;">=</span> <a style="color: #000060;" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fonts</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'illuminating'</span><span style="color: #009900;">]</span> Â <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ArtOfIlluminating.ttf'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fonts</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'okolaks'</span><span style="color: #009900;">]</span> Â  Â  Â  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'okolaksBold.ttf'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fonts</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'wanta'</span><span style="color: #009900;">]</span> Â  Â  Â  Â  Â  Â  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'wanta_091.ttf'</span><span style="color: #339933;">;</span></pre>
<p>each entry in the $fonts array is a font in the fonts folder. The array key between the brackets is what we use in our parameter declarations when we want to use the font. Look back to the javascript code above, you will see I&#8217;m using &#8220;loyal&#8221; font. Now, copy the Loyal Fame font to your facelift fonts folder, and add one more code line into config-flir.php file.</p>
<pre class="php"><span style="color: #666666; font-style: italic;">// Each font you want to use should have an entry in the fonts array.</span>
<span style="color: #000088;">$fonts</span> <span style="color: #339933;">=</span> <a style="color: #000060;" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fonts</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'illuminating'</span><span style="color: #009900;">]</span> Â <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ArtOfIlluminating.ttf'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fonts</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'okolaks'</span><span style="color: #009900;">]</span> Â  Â  Â  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'okolaksBold.ttf'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fonts</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'wanta'</span><span style="color: #009900;">]</span> Â  Â  Â  Â  Â  Â  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'wanta_091.ttf'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fonts</span><span style="color: #009900;">[</span><span style="color: #0000ff;">'loyal'</span><span style="color: #009900;">]</span> Â  Â  Â  Â  Â  Â  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Loyal.ttf'</span><span style="color: #339933;">;</span></pre>
<p>That&#8217;s it to make Facelift works on your tags cloud. But if you want to add hover function for your tags cloud, you&#8217;ll need to modify javascript to work with jQuery and make your tags cloud more awesome.</p>
<p><strong>It&#8217;s time for jQuey</strong></p>
<p>Download jQuery right <a href="http://docs.jquery.com/Downloading_jQuery#Current_Release">here</a> and add it into your webpage:</p>
<pre><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">language</span><span style="color: #0000ff;">="javascript"</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="js/jquery-1.3.2.min.js"</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></pre>
<p>And replace all the old javascript code at the previous part by code below:</p>
<pre class="html"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text/javascript"</span><span style="color: #0000ff;">&gt;</span>

Â $(<span style="color: #0000ff;">document</span>).ready(<span style="color: #0000ff;">function</span>(){

Â Â FLIR.init({path:<span style="color: #a31515;">'js/facelift/'</span>});
Â Â $(<span style="color: #a31515;">"a.flir"</span>).each( <span style="color: #0000ff;">function</span>() { FLIR.replace( <span style="color: #a31515;">'a.flir'</span> , <span style="color: #0000ff;">new</span> FLIRStyle({ cFont:<span style="color: #a31515;">'loyal'</span> }) ); } );
Â Â $(<span style="color: #a31515;">"a.flir"</span>).hover(<span style="color: #0000ff;">function</span>(){$(<span style="color: #0000ff;">this</span>).fadeOut(100);$(<span style="color: #0000ff;">this</span>).fadeIn(500);});

Â });

<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></pre>
<p>If you did all the step above, you can see the final result like this <a href="http://aext.net/example/awesome-tags-cloud/">demo</a>.</p>
<p>Feel free to add a comment if you think this tutorial is useful. Correct me if something I did above is wrong. Thanks for visiting!</p>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2009/08/make-a-most-beautiful-tags-cloud-on-over-the-world-with-facelift-and-jquery/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

