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
In reply to Re^6: Position on Web Page
by erroneousBollock
in thread Position on Web Page
by user2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |