62,049
社区成员
发帖
与我相关
我的任务
分享
function Show(qusetion, divID, objID) {
divID.getElementsByTagName("table")[0].rows[0].cells[0].appendChild(getobjectid(objID));
if (qusetion.length > 0 && qusetion != null) {
qusetion = qusetion.replace(/<\/?.+?>/g, ""); //html2txt 去掉html标记
qusetion = qusetion.replace(/\n|\r/g, ""); //去掉换行
document.getElementById(objID).innerHTML = qusetion;
x = event.clientX + document.body.scrollLeft;
y = event.clientY + document.body.scrollTop + 30;
if(x>screen.width/2)
x-=380;
if(y>screen.height/2)
y-=200;
divID.style.display = "block";
divID.style.left = x;
divID.style.top = y;
}
}
function ShowDiv(content)
{
var divID = $get("div_extendinfo");
var objID = $get("td_extendinfo");
Show(content,divID,objID.id);
}
function Hide()
{
div_extendinfo.style.display="none";
}
<div id="div_extendinfo" style="display: none; position: absolute">
<table border="0" cellpadding="0" bgcolor="#6699ff">
<tr>
<td id="td_extendinfo" height="25px" style="background-image: url(../../../images/win_top.png);
font-weight: bold; color: white">
</td>
</tr>
</table>
</div>
e.Row.Cells[2].Attributes.Add("onmousemove", "ShowDiv('" + drv["customername"].ToString() + "')");
e.Row.Cells[2].Attributes.Add("onmouseout", "Hide();");