in reply to Re^5: Position on Web Page
in thread Position on Web Page
The most direct way to synchronize the position of the word with the pointer is to relatively position the pointer (wrt an invisible div surrounding the word)... but that would create text-flow problems around the target word.
The "walk up the tree" approach I mentioned is till the best way to reliably find the correct position irrespective of layout technique... also, showing the pointer as an absolutely positioned div (above the standard content) doesn't affect the flow of the document.
You can attach an event handler to the resize of the browser window such that the positioning code is re-called to reposition the pointer.
You should probably invest in some good books about unobtrusive Javascript and the HTML DOM.
-David
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Position on Web Page
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 22, 2007 at 04:19 UTC | |
by erroneousBollock (Curate) on Aug 20, 2007 at 16:20 UTC |