HTML::Tooltip::Javascript - HTML in Tooltips

Home » Tutorials » HTML::Tooltip::Javascript talk

Contains HTML

my $tip1 = $tt->tooltip('This is a <b>tooltip</b>.');

Contains an image

my $tip2 = $tt->tooltip(
  '<img src="/images/questionmark2.jpg" />Here is some help text', 
  {bgcolor => '#FFFFFF'}
);

Contains a table

my $tip3 = $tt->tooltip('
 <table class="tooltip">
  <tr> <th>Id</th> <th>Name  </th> </tr>
  <tr> <td>1 </td> <td>Pirate</td> </tr>
  <tr> <td>2 </td> <td>Ernie </td> </tr>
  <tr> <td>3 </td> <td>Bob   </td> </tr>
 </table>
');

Contains a list

my $tip4 = $tt->tooltip('
 <ul>
  <li>Monday</li>
  <li>Tuesday</li>
  <li>Wednesday</li>
  <li>Thursday</li>
  <li>Friday</li>
  <li>Saturday</li>
  <li>Sunday</li>
 </ul>
');