in reply to Re^3: Position on Web Page
in thread Position on Web Page
Basically you want to draw your arrow (or whatever) so that its tip points to the area of interest.
Best bet is to:
I recommend the "walk up the tree" approach... which is basically just walking up the .parent chain from your interesting node until you find the first node that is absolutely positioned.. then you walk back down, asking the browser for the "computed" styles of each container element until you get to the target node, collecting positioning attributes on the way down. You should end up with a "recipe" for how to compute the position of the target-node. (A thorough understanding of DOM, CSSp and browser DOM-bugs is required... implementation left as an exercise for the reader ;)
-David
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Position on Web Page
by user2000 (Sexton) on Aug 20, 2007 at 05:31 UTC | |
by erroneousBollock (Curate) on Aug 20, 2007 at 06:01 UTC | |
by user2000 (Sexton) on Aug 20, 2007 at 07:10 UTC | |
by erroneousBollock (Curate) on Aug 20, 2007 at 16:11 UTC | |
by user2000 (Sexton) on Aug 21, 2007 at 17:30 UTC | |
| |
by erroneousBollock (Curate) on Aug 20, 2007 at 16:20 UTC |