my $tt = HTML::Tooltip::Javascript->new(
javascript_dir => '/javascript/',
options => {
bgcolor => '#FFFFFF',
fontcolor => '#FF6600',
default_tip => 'The default tooltip text',
},
);
The tooltip uses the default options and text
my $tip1 = $tt->tooltip();
The tooltip uses the default options but not the default text
my $tip2 = $tt->tooltip("Not using the default text");
The tooltip uses the default options, but also the options specified only for this tooltip
my $tip3 = $tt->tooltip("This is a purple tooltip",
{
fontcolor => '#CC00FF',
}
);