You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create a simple tips for all <a> elements
new FloatingTips('a'); // Title attribute will be used as tip. // Or, equivalent:
$$('a').floatingTips(); // A customized tip for all <span class="custom"> elements
new FloatingTips('span.custom', { // Content can also be a function of the target element!
content: function(e) { return 'I am ' + e.getSize().x + ' px wide! :)'; }, position: 'bottom', // Bottom positioned
center: false, // Place the tip aligned with target
arrowSize: 12, // A bigger arrow! });
HTML code:
<a href="#" title="This is a tooltip">Simple tip</a> <span class="custom">Custom tip</span>