Posted by z.stolar on December 14, 2008 at 6:20pm
Jump to:
| Project: | Tool Tips |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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".
Comments
#1
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.#2
Did you manage to fix this ? I am interested to add HTML to my tips, but when I tried using instead of it didn't work :-(
#3
Check out this issue that we posted awhile ago that has an advanced version of the currently available development module except this includes HTML, CCKs, and more...
http://drupal.org/node/679692