anchor.js

Enhanced Anchor tag.

Functions

OAT.Anchor.assign(anchor, options)

Modifies anchor element so it acts like Enhanced Anchor: when activated, it displays some additional data in lookup bubble. The lookup bubble is an instance of OAT.Win object - so it can be styled the same way: use predefined OAT.Winstyles or use its own via template. Options are the following:

OAT.Anchor.close(element, recursive)

Closes selected a++ window. The main point of this method is that it can be called from anywhere, so we do not have to use the close button of the window itself.

Example


var options = {
        title:"Title text",
        content:OAT.Dom.text("Content text"),
        status:"Status text",
        result_control:false,
        activation: "hover",
        type:OAT.WinData.TYPE_MAC
}
OAT.Anchor.assign("elementID", options);

CategoryDocumentation CategoryOAT CategoryOpenSource