|
NAMEHTML::TagCloud::Extended - HTML::TagCloud extensionSYNOPSISuse HTML::TagCloud::Extended; my $cloud = HTML::TagCloud::Extended->new(); $cloud->add($tag1, $url1, $count1, $timestamp1); $cloud->add($tag2, $url2, $count2, $timestamp2); $cloud->add($tag3, $url3, $count3, $timestamp3); my $html = $cloud->html_and_css( { order_by => 'count_desc', limit => 20, } ); print $html; DESCRIPTIONThis is extension of HTML::TagCloud.This module allows you to register timestamp with tags. And color of tags will be changed according to it's timestamp. Now, this doesn't depend on HTML::TagCloud. TIMESTAMPWhen you call 'add()' method, set timestamp as last argument.$cloud->add('perl','http://www.perl.org/', 20, '2005-07-15 00:00:00'); FORMATfollow three types of format are allowed.
COLORSThis module chooses color from follow four types according to tag's timestamp.
You needn't to set colors because the default colors are set already. But when you want to set colors by yourself, of course, you can. my $cloud = HTML::TagCloud::Extended->new; $cloud->colors->set( earliest => '#000000', ); $cloud->colors->set( earlier => '#333333', later => '#999999', latest => '#cccccc', ); # or, you can set color for each attribute $cloud->colors->set( earliest => { link => '#000000', hover => '#CCCCCC', visited => '#333333', active => '#666666', }, ); LIMITTINGWhen you want to limit the amount of tags, 'html()', html_and_css()' need second argument as hash reference.$cloud->html_and_css( { order_by => 'timestamp_desc' , limit => 20 } ); SORTING TYPEdefault is 'name'
OTHER FEATURES
SEE ALSOHTML::TagCloudAUTHORLyo Kato <lyo.kato@gmail.com>COPYRIGHT AND LICENSEThis library is free software. You can redistribute it and/or modify it under the same terms as perl itself.POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |