Friday, April 23, 2010

Cool Flash-based tag clouds

In the Blogumus example, the URLs no longer work. Need to change the URL for the swf to:
http://www.roytanck.com/wp-content/plugins/wp-cumulus/tagcloud.swf
and replace the URL for swfobject.js to:
http://www.roytanck.com/wp-content/plugins/wp-cumulus/swfobject.js

On this blog, the widget code is:
<b:widget id='Label99' locked='false' title='Label Cloud' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<script src='http://www.roytanck.com/wp-content/plugins/wp-cumulus/swfobject.js' type='text/javascript'/>
<div id='flashcontent'>Blogumulus by <a href='http://www.roytanck.com/'>Roy Tanck</a> and <a href='http://www.bloggerbuster.com'>Amanda Fazani</a> via <a href='http://bloggerstop.net'>BloggerStop.Net</a></div>
<script type='text/javascript'>
var so = new SWFObject("http://www.roytanck.com/wp-content/plugins/wp-cumulus/tagcloud.swf", "tagcloud", "200", "200", "7", "#DDDDAA");
so.addParam("wmode", "transparent");
so.addVariable("tcolor", "0x5588AA");
so.addVariable("mode", "tags");
so.addVariable("distr", "true");
so.addVariable("tspeed", "100");
so.addVariable("tagcloud", "<tags><b:loop values='data:labels' var='label'><a expr:href='data:label.url' expr:style='8 + data:label.count'><data:label.name/></a></b:loop></tags>");
so.addParam("allowScriptAccess", "always");
so.write("flashcontent");
</script>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

No comments:

Post a Comment