Enabling HTML within tips

z.stolar - December 14, 2008 - 18:20
Project:Tool Tips
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I wanted to integrate HTML (a link for example) within the tip, but it's impossible, since the tipped text is an anchor.
Modifying it to be a span tag, makes putting HTML within the tips possible.

<?php
$replace
[] = '<span class="tooltip">' . $link  .'<span>'. $tip .'</span>'  . '</span>';
?>

Also - change the CSS file, to match. Turn all "a" selectors into "span".

#1

tmallen - April 6, 2009 - 03:18

Right, but the hover effect itself would not work in IE6 without the wrapper being a link (unless JS were used). I think that a <div> could be used in place of the current <span>...testing.

 
 

Drupal is a registered trademark of Dries Buytaert.