Core Docs | Additional Modules Docs

Element.prototype.addToolTip


@Description: Adds a tooltip capability to any DOM element
@File: Element/prototype/addToolTip.js
@Author: Paul Visco
@Version: 1.02 11/16/07 12/15/08
@Example:
//simple
sbElement.addToolTip({
    tip : 'Here is a tooltip'
});

//more complex
sbElement.addToolTip({
    tip : '<a href="#" title="close">close</a><br />Use this form to lookup users by name. It requires you input at least three characters.<br />You can even use regular expressions<ol><li><i>pa.l</i> would find paul and paulnotpaul<li><li><i>pa.l$</i> would find paul only<li><li><i>p..</i> would find everyone whose name started with p<li></ol>',
    additionalClassName : 'jump_menu',
    persistent : 1,
    yOffset : -160,
    xOffset : -210
});