<font face="arial" size="2">Somebody needs to invent a date-sensitive, top-posting sig for Hakan :)<br /><br />Thanks; I'll look into these.&nbsp; Although I'm starting to realize the limitations here (other windowed controls and iframes with content from different sites so I can't alter the HTML), so I may have to take a stroll down createPopup lane (IE only; I don't know what I'm going to do for Moz).<br /><br />Cheers,<br /><br />Peter<br /><br />P.S.&nbsp; Save me a seat and a cold one.<br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b>From</b>: "Hakan M (Backbase)" <a href="mailto:hakan@backbase.com">hakan@backbase.com</a><br /></font><br />It is possible, in IE and Mozilla. They have proprietary functions that <br />will help you.<br /><br /><historical_quote><br />Anyway, I'm off for the pub, so I can't help you really much right now.<br /></historical_quote><br /><br />But have a look at<br /><br />Mozilla: document.getBoxObjectFor(oElement);<br />IE: oElement.getBoundingClientRect();<br /><br />and they will provide you with all the stuff you need. Not that in IE, <br />the offset is 2 pixels off (always).<br /><br />Hope this helps.<br /><br />Regards,<br />H<br /><br />Peter Brunone wrote:<br />&gt; Thanks Paul and Richard...<br />&gt; <br />&gt; I guess I was looking for some magical method that would allow me to <br />&gt; do this without iterating through *every* element on the page. Perhaps <br />&gt; that's not a possibility right now, and I just need to get down and <br />&gt; dirty with the DOM. As usual, I'm sure PPK's stuff will prove helpful.<br />&gt; <br />&gt; Cheers,<br />&gt; <br />&gt; Peter<br />&gt; <br />&gt; *From*: Paul Novitski paul@novitskisoftware.com <br />&gt; <?xml:namespace prefix = mailto /><mailto:paul@novitskisoftware.com><br />&gt; <br />&gt; At 08:27 PM 2/3/2005, Peter Brunone wrote:<br />&gt; &gt; Is it possible, with an absolutely-positioned element, to<br />&gt; &gt;determine what controls (either absolutely or relatively positioned)<br />&gt; &gt;overlap its current area?<br />&gt; <br />&gt; Peter,<br />&gt; <br />&gt; As far as I know you can determine the dimensions and position in the<br />&gt; window of any element on the page, regardless of how it was<br />&gt; positioned. Peter-Paul Koch's got some nifty little functions for<br />&gt; determining position on http://www.quirksmode.org/ (navigate to Javascript<br />&gt; : DHTML : Find position) Then it's a simple matter of iterating through<br />&gt; all the elements on the page, doing the necessary arithmetic to discover if<br />&gt; any overlap your target element.<br />&gt; <br />&gt; Upon reflection, it seems to me that two boxes overlap if any one corner of<br />&gt; either box lies between the top and bottom AND between the left and right<br />&gt; edges of the other box. That logic would require eight tests per pair of<br />&gt; boxes to prove that they didn't overlap, testing each corner of both boxes<br />&gt; to see if it lay within the other box. Perhaps you can reduce that to<br />&gt; something more elegant!<br />&gt; <br />&gt; Well, let's see: in four tests you can find out whether:<br />&gt; - the top of box A lies below the bottom of box B, or<br />&gt; - the bottom of box A lies above the top of box B, or<br />&gt; - the left edge of A lies to the right of B's right edge, or<br />&gt; - the right edge of A lies to the left of B's left edge.<br />&gt; If any of those are true, the boxes can't overlap. If all are false, I<br />&gt; believe they must overlap. N'est ce pas?<br />&gt; <br />&gt; Paul<br />&gt; <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 />_______________________________________________<br />Javascript mailing list<br />Javascript@LaTech.edu<br />https://lists.LaTech.edu/mailman/listinfo/javascript<br /><br /></mailto:paul@novitskisoftware.com>