javascript div positioning
- by sam
hello folks.,
please suggest me a solution..
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 pixcel..
function LargeImage(obj,e)
{
var imgbtn=document.getElementById('<%=imgbtn1.ClientID%');
imgbtn.src=obj;
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"; //225 +"px";
}
thank you