addywaddy / jquery.tagcloud.js

A Simple Tag Cloud Plugin for JQuery
http://addywaddy.github.com/jquery.tagcloud.js/
MIT License
227 stars 74 forks source link

jquery.tagcloud.js

Usage

<div id="whatever">
  <a href="https://github.com/addywaddy/jquery.tagcloud.js/blob/master/path" rel="7">peace</a>
  <a href="https://github.com/addywaddy/jquery.tagcloud.js/blob/master/path" rel="3">unity</a>
  <a href="https://github.com/addywaddy/jquery.tagcloud.js/blob/master/path" rel="10">love</a>
  <a href="https://github.com/addywaddy/jquery.tagcloud.js/blob/master/path" rel="5">having fun</a>
</div>

and then:

$.fn.tagcloud.defaults = {
  size: {start: 14, end: 18, unit: 'pt'},
  color: {start: '#cde', end: '#f52'}
};

$(function () {
  $('#whatever a').tagcloud();
});

Demo

Check it out here.