Josh Lizarraga![]()
YUI Tooltip is a YUI3 widget that allows you to easily add an animated tooltip to any element on a web page.
Simply give an HTML element a "tooltip" attribute, and set the attribute to the content you'd like YUI Tooltip to display when the element is hovered on. You can use any HTML you want in a tooltip so long as it is properly escaped.
You can also align your tooltips using the "tooltip:alignment" attribute, with a value of "top", "right", "bottom", or "left". The tooltip will align itself to the center of the corresponding edge of the element.
YUI Tooltip is lightweight, supports all major browsers, and is fully skinnable. :)
As illustrated below, all you need to do is render a single Tooltip instance, which will automatically find elements with a "tooltip" attribute.
<script src="http://yui.yahooapis.com/3.4.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2011.09.28-20-06'
}).use('gallery-yui-tooltip', function(Y) {
var tooltip = new Y.Tooltip();
tooltip.render();
});| Subject | Author | Date |
|---|---|---|
| Load style for gallery module YUI Tooltip. | Khoa Bui | 08/29/12 |
| Re: Load style for gallery module YUI Tooltip. | Andrew Wooldridge | 10/4/12 |
| Re: Load style for gallery module YUI Tooltip. | Andrew Wooldridge | 10/4/12 |
| Re: Load style for gallery module YUI Tooltip. | John Lindal | 10/4/12 |
| tooltip attribute | Zdravko Balorda | 11/28/12 |
| ToolTip on an image in a DataTable | Eric Mooney | 03/8/13 |
| No CSS Styles are loaded... | Thomas Wiedmann | 03/20/13 |
| Re: No CSS Styles are loaded... | Victor Gavilán | 03/20/13 |
| Re: No CSS Styles are loaded... | Thomas Wiedmann | 03/21/13 |
| Re: No CSS Styles are loaded... | Thomas Wiedmann | 03/21/13 |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info