I am using this script to display an image as popup on mouseover. The difficulty I am facing is that it is not positioning well in different monitor. It must be something to do with resolution.
function LargeImage(obj, e)
{
var imgbtn=document.getElementById('<%=imgbtn1.ClientID%>');
imgbtn.src=obj;//source of the image
document.getElementById('imgbox').style.visibility="visible";
document.getElementById('imgbox').style.position="absolute";
document.getElementById('imgbox').style.left=e.clientX-150 + "px";
document.getElementById('imgbox').style.top=225 +"px";
}
<div id="imgbox"><asp:imagebutton id="imgbtn1" runat="server" OnClick="ImageButton4_Click"/></div>
Thank you.