I would like to get a tooltip displayed from a content script that reads and changes the DOM of a web page (therefore page-mod must be used). The tooltip uses the DOM element and creates a tooltip at that location in the document. The tooltip uses CSS to create the tooltip. It seems that pagemod's can't use CSS (I am right in this thought, if so that is a pretty serious limitation). Anyway I could like the annotater example pass the data out of the page-mod but then I would still have to display the tooltip in the right location next to the text, maybe I could pass out the coordinates relative to the window and and use these coordinates however i dont think this will work as my tooltip code relies on the DOM to create an DOM element on the current page that is formatted to act as the tooltip, however maybe the DOM could come from a panel DOM. Anyway I notice that the annotator addon example code avoids this problem by always having the annotation panel appear in the centre of the window regardless of the highlighted paragraph!
Anyway, Any ideas would be welcome.