J. Shirley![]()
The Bootstrap Tooltip is a markup and CSS compatible layer, combining the benefits of YUI and the ease of use and styling of Twitter's Bootstrap project.
See it in action at http://jshirley.github.com/bootstrap/javascript.html#tooltips
Given a link like <a href="#" rel="tooltip" title="first tooltip">you probably</a>, the rel="tooltip" will trigger the nicely formatted tooltip to be displayed.
You will need to include the bootstrap.css from Twitter's Bootstrap project.
<script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.08.22-20-00'
}).use('gallery-bootstrap-tooltip', function(Y) {
new Y.Bootstrap.Tooltip({ selector : '*[rel=tooltip]' }).render();
});
© 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