Find the Top Left xy of an <IFRAME>

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top