Home
| Links | Site Map | About Us | Contact Us | Add your code

 

PHP Code: Tagcloud Font Distributor       Next Code

This will assign font sizes to tags based on their counts. It tries to evenly distribute the font sizes among the tags while keeping all tags with the same counts under the same font size. The data needs to be in the following format:

$tag[tag_name] => Tag Name
$tag[tag_count] => Number of instances of this tag
$tag[tag_class] => Resulting class name, ex: tag1, tag2

Please note that this does not work with a class object. This was designed to work with an array only.

Once you create an array of these objects, you can feed them to the cloud_tags() function which will assign each $tag with a tag_class based on it's tag_count and the overall number of font sizes and tags. The return result is the array sorted aphabetically with each tag_class properly assigned.
 

 

Preview:

 

 

 

 

 

 

Free Code Script:

Get Free Java, HTML, PHP codes and scripts. Use code script and easily with HTML and web help and samples. Learn Javascript, HTML and PHP source code, function, forms, website, forum, design for webmasters.

Link Us:

Free Code Script

Just put this code to your pages and you will have our logo in your site! This brings traffic to your website.

Favorite Us!


We update weekly!

Visitors:

Online Users:


Go to the main page

  Home | Links | Site Map | About Us | Contact Us | Add your code
2008 © Krishna Eydat, YOU MUST NOT remove the link to our website in any code, it is against the copyright law.