S
soup_or_power
Hello
I'm trying to assign the position of a popup the same as a link.
The position of link is coming out ok. But the popup is not
being shown at the left,top coordinates of the link. I'm using IE6 and
getting workedup like silly. I'd appreciate your help.
Thank you
document.getElementById('popup').style.visibility="visible";
var top= document.body.scrollTop +
document.getElementById('link1').offsetTop;
document.getElementById('popup').style.top=top;
var left =document.body.scrollLeft +
document.getElementById('link1').offsetLeft;
document.getElementById('popup').style.left=left;
I'm trying to assign the position of a popup the same as a link.
The position of link is coming out ok. But the popup is not
being shown at the left,top coordinates of the link. I'm using IE6 and
getting workedup like silly. I'd appreciate your help.
Thank you
document.getElementById('popup').style.visibility="visible";
var top= document.body.scrollTop +
document.getElementById('link1').offsetTop;
document.getElementById('popup').style.top=top;
var left =document.body.scrollLeft +
document.getElementById('link1').offsetLeft;
document.getElementById('popup').style.left=left;