|
Cookbook /
LinkCSSToolTipSummary: link markup with css popup tooltip text including styling, variables, includes, menus
Version: 2008-04-10b
Prerequisites:
Status: new
Maintainer: HansB
Download: linkcsstooltip.phpΔ
Questions answered by this recipe
DescriptionDownload 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 Examples with variables:
Examples of dropdown menus
Notes
Browser Compatibilities Issues
Release Notes
See AlsoContributorsI use this recipe, ThanksFidelioEspoir, This cookbook is very useful to create menubar. I don't use anymore sidebar. CommentsI'm no CSS expert, but I managed to get rid of the unwanted newline by replacing the initial 'div' tag (the one with class="ttwrap") with a 'span', and changing all the div.ttwrap to span.ttwrap in the CSS. I have no idea if there are any repercussions, but it seems to work. The rest is just awesome :) Thanks. - Ben 2010-09-02 21:46 Is it true that for this recipe to work in IE6 you need to install the WikiStylesPlus recipe or something similar to enable hover on non-link elements? bang February 20, 2010, at 02:26 PM 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 I have this working where it includes another page as a tooltip. The problem is I have many links on the page. When the tool tip pops up with a link underneath it. The link shows through (tooltip is translucent to links underneath) This appears to only be in IE(7). In Firefox its ok. - Nigel 2008-02-10 A possible fix for this problem is to change this line in linkcsstooltip.php: static $cnt = 50; $cnt++;
to static $cnt = 1000; $cnt--;
and change this line: return "<div class='ttwrap'>".$link.$ttdiv."</div>";
to this: return "<div class='ttwrap' style='z-index:{$cnt}'>".$link.$ttdiv."</div>";
bang February 20, 2010, at 02:26 PM [[Home.Lnk|Text|:(:include pagelink.link:):]]
I have this working where it includes another page as a tooltip. If the text is on a single line it causes scrollbars and text is off the page. Only occurs in Firefox. IE(7) is Ok - Nigel 2008-02-10
Excellent recipe, Hans!! FYI, I modified it so you can also have:
I added examples for variables as tooltip like PageVar 'Title'. Please send me your mod script, perhaps I can adopt it? HansB December 11, 2008, at 04:51 AM User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |