javascript div positioning

Posted by sam on Stack Overflow See other posts from Stack Overflow or by sam
Published on 2010-04-29T12:34:09Z Indexed on 2010/04/29 12:37 UTC
Read the original article Hit count: 347

Filed under:

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

© Stack Overflow or respective owner

Related posts about JavaScript