The TreeView behavior provides a default ToolTip that displays when a user hovers over a TREENODE element. You may want your users to have more specific information than is provided by the default ToolTip (Use /- to expand / collapse) accessed by the SHOWTOOLTIP attribute . You can acid.............
The following sample shows what these methods might look like. The sample uses the TEXT attribute of the TreeNode object as the ToolTip text, but you could customize this to provide any information that you choose.// ToolTip functions include starthover (), starttip ( ), and endtip () // Tooltip variables var mytimer; var nodetext; var tipy;
Function Starthover () {var myval = window.event.treenodeIndex; var mynode = teree.gettreenode (myval);
NodeText = MyNode.getaTRibute ("text"); tipx = window.event.clientX 15; Tipy = WINDOW.EVENT.CLIENTY 15;
MyTimer = WINDOW.SETTIMEOUT (Starttip, 1000);
function starttip () {results1.style.backgroundColor = "infobackground"; results1.style.position = "absolute"; results1.style.left = tipX; results1.style.top = tipY; results1.style.border = "1px solid Black "; results1.innertext = NODETEXT;
MyTimer = WINDOW.SETTIMEOUT (Endtip, 5000);