[eluser]Gavin Vickery[/eluser]
Thanks Zaatar
If you do implement with JTaby, I'd be curious to see it.
Also, I thought of a possible 'upgrade' to Taggly last night. After looking through other sites using the tag-cloud concept, I noticed several use CSS styles to define the size and color instead of embedding it right in the tag.
So:
Code:
<a href="http://..." style="font-size: 12px">Example</a>
Becomes:
Code:
<a href="http://..." class="small_font">Example</a>
This way you can define an array of styles to be used instead of font-sizes allowing you to not only apply font sizes, but other CSS styles too (color, text-decoration, background etc.).
Code:
.small_font {font-size: 12px; color: red;}
.medium_font {font-size: 20px; color: blue;}
.large_font {font-size: 30px; color: green; font-weight: bold;}
The logic would be a bit tricky, because you should be able to define any amount of styles to be used and still just pass an array of tags (I love expandability).
Does that make sense? What do you guys/gals think? Is this something wroth implementing?