<html><div style='background-color:'><DIV class=RTE>
<P>Hi Nick,</P>
<P>Thanks for the response. I knew it was not an easy subject after looking for help on google for about an hour.</P>
<P>Thanks for the tips and URLs though, I will take a look and then decide that if what I want to do is really worth it.</P>
<P>Thanks again,</P>
<P>Alan...<BR><BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>

<DIV></DIV>From:&nbsp;&nbsp;<I>Nick Fitzsimons &lt;nick@nickfitz.co.uk&gt;</I><BR>Reply-To:&nbsp;&nbsp;<I>"\[JavaScript List\]" &lt;javascript@LaTech.edu&gt;</I><BR>To:&nbsp;&nbsp;<I>"\[JavaScript List\]" &lt;javascript@LaTech.edu&gt;</I><BR>Subject:&nbsp;&nbsp;<I>Re: [Javascript] X and Y co-ordinates of an object</I><BR>Date:&nbsp;&nbsp;<I>Mon, 26 Feb 2007 16:41:48 +0000</I><BR>&gt;On 26 Feb 2007, at 15:58:38, Alan Easton wrote:<BR>&gt;<BR>&gt;&gt;Hi All,<BR>&gt;&gt;<BR>&gt;&gt;I am wanting to know the X and Y co-ordinates of an object on a&nbsp;&nbsp;<BR>&gt;&gt;page. It needs to be Firefox, Netscape and IE compatible.<BR>&gt;&gt;<BR>&gt;<BR>&gt;Welcome to a world of pain :-(<BR>&gt;<BR>&gt;You might want to start at ppk's site:<BR>&gt;&lt;http://www.quirksmode.org/js/elementdimensions.html&gt;<BR>&gt;where a look at the compatibility table and associated notes 
should&nbsp;&nbsp;<BR>&gt;serve to convince you that this is not as easy as you might expect.<BR>&gt;<BR>&gt;In particular, things get complex very quickly if the page has been&nbsp;&nbsp;<BR>&gt;scrolled, if relative or absolute positioning are used, if elements&nbsp;&nbsp;<BR>&gt;within the page are scrolled independently using the CSS "overflow:&nbsp;&nbsp;<BR>&gt;auto;" or "overflow: scroll;" properties, and if iframes get&nbsp;&nbsp;<BR>&gt;involved. And then there are various off-by-a-few-pixel bugs in&nbsp;&nbsp;<BR>&gt;different browsers.<BR>&gt;<BR>&gt;Then have a look at lines 187 to 253 of the dom.js file in the <BR>&gt;Yahoo!&nbsp;&nbsp;User Interface Library:<BR>&gt;&lt;http://developer.yahoo.com/yui/&gt;<BR>&gt;which is pretty much bulletproof, but may have dependencies on other <BR>&gt;&nbsp;&nbsp;parts of the library. It should at least serve to give you an idea 
<BR>&gt;of&nbsp;&nbsp;the approach to follow, if you want to write it yourself.<BR>&gt;<BR>&gt;(Note that other JS libraries include similar functionality, so you&nbsp;&nbsp;<BR>&gt;might want to look at their source, as well.)<BR>&gt;<BR>&gt;HTH,<BR>&gt;<BR>&gt;Nick.<BR>&gt;--<BR>&gt;Nick Fitzsimons<BR>&gt;http://www.nickfitz.co.uk/<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;_______________________________________________<BR>&gt;Javascript mailing list<BR>&gt;Javascript@LaTech.edu<BR>&gt;https://lists.LaTech.edu/mailman/listinfo/javascript<BR></FONT></BLOCKQUOTE></div><br clear=all><hr>Get Hotmail, News, Sport and Entertainment from MSN on your mobile.  <a href="http://g.msn.com/8HMBENUK/2749??PS=47575" target="_top">Click Here!</a> </html>