显示提示框的左端位置
datadiv.style.top = top + \"px\"; //设置顶部位置
}
function cleardata(){ //鼠标移开时,清除动态生成的tr
var ind = datatablebody.childNodes.length;
for(var i = ind-1;i>=0;i--){
datatablebody.removeChild(datatablebody.childNodes[i]);
}
datadiv.style.border = \"none\";
}
</script>
<img src=\"eclipse.ico\" onmouseover=\"getdetail();\" onmouseout=\"cleardata();\"/>
<div style=\"position:absolute;\" id=\"popup\">
<table bgcolor=\"#fffafa\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\">
<tbody id=\"databody\">
</tbody>
</div>