Tags part II
Been playing some more with my tag code of wonder. It’s now more scalable and customisable. Plus it seems to work on IE now.
FluffyTags.js is the main scriptures (right click and save target). Here’s a quick example…
<ul id="taglist" class="listoflinks">
<MTTags>
<li title="<$MTTagCount$>">
<a class="tagtext" href="<MTTagArchiveLink>"><MTTagName></a>
<a href="http://www.technorati.com/tag/<MTTagName>"
rel="TAG" title="TAG:<MTTagName>"><img width=16 height=16
src="/images/techiconsmall.png" /></a> </li>
</MTTags>
</ul>
<script type="text/javascript" src="FluffyTags.js"></script>
<script type="text/javascript">
var oParent = document.getElementById("taglist");
tagCloud(oParent, //Element to start crawling from
100, 255, 100, //colours (R,G,B 0-255) for low tag counts
20, 200, 20, //colours for high tag counts
10, 40, //text size range pt (low, high)
2, //count below this is insignificant
200, 200, 200, //colours for insignificant tags
10); //text size for insignificant tags
</script>
Note class=”tagtext” in the MT stuff, my code looks for an element with this class to change the colour and text size of. The tagCloud function is what you call from the page and it takes a fair number of arguments which i have commented upon in the above example. I’m sure there’s lots of bugs.
