Link CSS Tool Tip

Summary: link markup for links with css popup tooltip text
Version: 2008-04-10b
Prerequisites:
Status: new
Maintainer: HansB?
Categories: Links Markup

Questions answered by this recipe

How can I have links with styled and multi-line tooltips, even including images?

Description

Download Attach:linkcsstooltip.php Δ, copy to cookbook folder and add to config.php:

include_once("$FarmD/cookbook/linkcsstooltip.php");

This adds two new link markups for additional tooltip text:

You can use wiki styles in the markup for the tooltip text. Or change the css styling to your needs and liking.

In fact you can use any markup inside the tooltip, even page text varibles, markup expressions, conditional markup, page includes etc.

The tooltip text will pop up immediately when rolling the mouse over the link. It also works for IE (improving on the technique used in CSSPopups?.

Entering \\ in the tooltip text will insert a line break.

Notes

Browser Compatibilities Issues

General issues
If text precedes a tooltip link the link is shown on the next line below (added new line).
Opera 9.27
There is a rendering bug in Opera 9.27, showing non-rendered horizontal stripes in the tooltip, till mouse is moved over the tooltip. This is overcome in Opera 9.5beta.
Firefox
If another page is included as a tooltip, and that page has a link which contains wiki style markup, then the tooltip appears broken.

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See Also

Contributors

Comments

Which browsers has this recipe been tested in? (I had a problem under Opera.) - RandyB 2008-04-18

There is a rendering bug in Opera 9.27, which is overcome in Opera 9.5beta. HansB?

Using the 2008-04-10 version of this recipe with Safari 3.1 and Firefox 3.0b5 causes the same problem: sometimes a new line occurs where it shouldn't. - RandyB 2008-04-19