HTML-Tooltip-Javascript
view release on metacpan or search on metacpan
lib/HTML/Tooltip/Javascript.pm view on Meta::CPAN
my $tip1 = $tt->tooltip("Tip", \%options);
This method returns the HTML to be inserted into the HTML element for which the tooltip is to be displayed.
For example, to output a tooltip for a link:
my $tip1 = $tt->tooltip("Example Tip", {fontcolor => 'blue'});
print qq(<a href="/example/" $tip1>Example</a>);
This would output a link with text 'Example', and when the mouse pointer hovers over the link, a popup box with the words 'Example Tip' in blue would appear.
Any options passed into to the tooltip() method will overwrite the values provided in the new method. However, options provided in the new method will be inherited unless specifically undefined in the tooltip method.
=head2 at_end
print $tt->at_end;
This method outputs the html to include Walter Zorn's script. It must be output after all tooltip related output. We recommend printing the output of this method at the end of the html, just before the close BODY tag (hence the name at_end()).
=head1 BROWSER SUPPORT
( run in 1.430 second using v1.01-cache-2.11-cpan-364913b4093 )