Closed Thread Icon

Topic awaiting preservation: What am I laying on? Pages that link to <a href="https://ozoneasylum.com/backlink?for=8270" title="Pages that link to Topic awaiting preservation: What am I laying on?" rel="nofollow" >Topic awaiting preservation: What am I laying on?\

 
Author Thread
meccaman
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2002

posted posted 08-21-2002 20:06

I was wondering if there is a way to dynamically determine elements physically below a div layer.
The div layer is absolutely positioned and none of the elements are children nodes of the div. I guess I could go through the DOM doc and compare top,left, right (left+width) and bottom(top+height) dims of each element with the dim of the div, but I'm wondering if there is another way. Any ideas?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-21-2002 21:33

Well, using Element.nextSibling (i think, or maybe Element.followingSibling), you should be able to access the next element in the *source*. But if you have a bunch of absolutely positioned elements at random positions, you'll have to compare their positions manually.

« BackwardsOnwards »

Show Forum Drop Down Menu