function show(obj){ var od = document.getElementById('div1'), o = obj, x = 0, y = 0, h = obj.offsetHeight; while(o != null){ x += o.offsetLeft; y += o.offsetTop; o = o.offsetParent; } od.style.left = x+'px'; od.style.top = y+ h +'px'; od.style.visibility = 'visible'; } function hid(){ document.getElementById('div1').style.visibility = 'hidden'; } onfocus="show(this);" onblur="hid();"
var od = document.getElementById('div1'), o = obj, x = 0, y = 0, h = obj.offsetHeight;
while(o != null){
x += o.offsetLeft;
y += o.offsetTop;
o = o.offsetParent;
}
od.style.left = x+'px';
od.style.top = y+ h +'px';
od.style.visibility = 'visible';
}
function hid(){
document.getElementById('div1').style.visibility = 'hidden';
}
onfocus="show(this);" onblur="hid();"