var CallPopup = window.createPopup();
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
var style = "0";
var x = 0;
var y = 0;
function ShowTitle(CallID)
{
x = event.clientX;
y = event.clientY;
if(style == "0")
{
var JHBaseMessage_PopupMenuDoc=CallPopup.document;
var oStyle= JHBaseMessage_PopupMenuDoc.createStyleSheet("link");
var oPageStyle = document.getElementById("PageStyle");
oStyle.href=oPageStyle.href;
style ="1";
}
//给Popup窗体添加样式表
xmlHttp.Open("POST", "CallRelateUsers.aspx?ID="+CallID, true);
xmlHttp.onreadystatechange = MyTitle;
xmlHttp.Send();
}
///修改人:蒋海斌;
///修改时间:2008-12-28 09:11
///修改原因:添加函数,用于保留信息显示页面“发送人”列相关信息显示
function ShowTitle1(CallID)
{
x = event.clientX;
y = event.clientY;
if(style == "0")
{
var JHBaseMessage_PopupMenuDoc=CallPopup.document;
var oStyle= JHBaseMessage_PopupMenuDoc.createStyleSheet("link");
var oPageStyle = document.getElementById("PageStyle");
oStyle.href=oPageStyle.href;
style ="1";
}
//给Popup窗体添加样式表
xmlHttp.Open("POST", "CallRelateUsers.aspx?savecallindex=1&ID="+CallID, true);
xmlHttp.onreadystatechange = MyTitle;
xmlHttp.Send();
}
function MyTitle()
{
if(xmlHttp.readyState==4)
{
var rValue = xmlHttp.responseText;
if(rValue!="")
{
var str = "<div id=Div style='overflow:auto;100%;height:200;margin-top:0;margin-left:0;margin-right:0;font-size:9pt;padding:5 5;'>" + rValue + "</div>";
CallPopup.document.body.innerHTML = "<table id='a1' cellSpacing=0 cellPadding=0><tr><td>" + str+"</td></tr></table>";
CallPopup.document.body.style.border="1 #000000 solid";
var oDivHeight = CallPopup.document.all.Div.scrollHeight;
var oDivWidth = CallPopup.document.all.a1.offsetWidth;
if(oDivHeight < 200)
{
if(oDivWidth> 400)
{
CallPopup.show(x,y,400,oDivHeight+16,document.body);
}
else
{
CallPopup.show(x,y,oDivWidth+10,oDivHeight+16,document.body);
}
}
else
{
CallPopup.show(x,y,400,200,document.body);
}
}
else
{
CallPopup.hide();
}
}
else
{
CallPopup.document.body.innerHTML = "<div align=center style='padding:5 5;height:100%;100%;font-size:9pt'>Loading...</div>"
CallPopup.document.body.style.border="1 #000000 solid";
CallPopup.show(x,y,200,30,document.body);
//x = event.clientX;
//y = event.clientY;
}
}
function HiddenTitle()
{
//CallPopup.hide();//出现滚动条的时候鼠标移出隐藏的话不行,所以还是去掉隐藏。
}