M
milbrand
I have an IFrame:
<IFRAME id="BIssues" title="issues" src="BIssues.aspx"
frameBorder="no"style="position:absolute;width:100%;height:
150px;border:0px">
In this iframe I have onmouseover that opens a floating text. The
issue that comes into play is that the mouse position is relative to
the iframe and displays the floating text using the same coordinates
except on the parent window. Is there a way I can find the top and
left coordinates of the iframe so I can add them to the coordinates
when I display the floating text? The java script is contained in the
IFrame.
I tried the following and the browser does not like this:
x=x+parent.document.getElementById('BIssues').style.left;
y=x+parent.document.getElementById('BIssues').style.top;
Any help is greatly appreciated.
~Brad
<IFRAME id="BIssues" title="issues" src="BIssues.aspx"
frameBorder="no"style="position:absolute;width:100%;height:
150px;border:0px">
In this iframe I have onmouseover that opens a floating text. The
issue that comes into play is that the mouse position is relative to
the iframe and displays the floating text using the same coordinates
except on the parent window. Is there a way I can find the top and
left coordinates of the iframe so I can add them to the coordinates
when I display the floating text? The java script is contained in the
IFrame.
I tried the following and the browser does not like this:
x=x+parent.document.getElementById('BIssues').style.left;
y=x+parent.document.getElementById('BIssues').style.top;
Any help is greatly appreciated.
~Brad