Version 9, changed by guest. 12/12/2006. Show version history
JotSpot tagging library created by Phil Kast and members of the JotSpot developer community. See the project wiki for more details: http://tag-dev.jot.com.
The library is simple and fast. It supports multiple clouds per page. See TagLibDemoPage for live examples.
There are 3 steps to creating a tag cloud:
1. Include the library:
<jot:include node="TagLib" />
2. Create a tag cloud from an array of tags. E.g.
//create a clould based on the current page's tags var myCloud = new Tag.Cloud(page.main.tags);
or
var myTagArray = new Array("tag1", "footag", "bartag");
var myCloud = new Tag.Cloud(myTagArray);
3. Display the cloud with options (all together now):
<jot:include node="TagLib" />
<jot:script>
var myTagArray = new Array("tag1", "footag", "bartag");
var myCloud = new Tag.Cloud(myTagArray);
myCloud.display({pivot: 'SimpleTagPivot', idPrefix: 'myCloud', dynamic: 'static', containerClass: 'tagCloud'});
</jot:script>
this displays a cloud that:
myCloud
tagCloud (default -- included in TagLibCSS.css?)
The options for display() are: