<Script language = "JavaScript">
Function seashowtip (ctr, tips, flag, iwidth ){
Var pos = GetObjPos (ctr );
Var my_tips = document. all. mytips;
If (flag ){
My_tips.innerHTML = tips;
My_tips.style.display = "";
My_tips.style.width = iwidth;
My_tips.style.left = pos. x;
My_tips.style.top = pos. y + 20;
}
Else
{
My_tips.style.display = "none ";
}
}
Function CPos (x, y)
{
This. x = x;
This. y = y;
}
Function GetObjPos (ATarget)
{
Var target = ATarget;
Var pos = new CPos (target. offsetLeft, target. offsetTop );
Var target = target. offsetParent;
While (target)
{
Pos. x + = target. offsetLeft;
Pos. y + = target. offsetTop;
Target = target. offsetParent
}
Return pos;
}
</Script>
Add a hidden div to the page
<Div id = mytips style = "position: absolute; Background-color: # ffffff; width: 121; Height: 16; Border: 1px solid gray; display: none; filter: progid: DXImageTransform. microsoft. shadow (color = #999999, direction = 135, strength = 3); left: 0; top: 5 "> </div>
Text Box call: onblur = seashowtip (this, this. Tips, 1,150 );