Hover text at mouse created from firefox toolbar add-on

Posted by c-square on Stack Overflow See other posts from Stack Overflow or by c-square
Published on 2009-02-21T03:53:06Z Indexed on 2010/03/13 3:07 UTC
Read the original article Hit count: 420

Filed under:
|
|
|
|

Hi all,

I'm creating a firefox add-on, and I have a situation where if someone clicks on a specific item in my toolbarbutton menupopup, I want to display some text to appear beside the mouse for a couple seconds. I don't mean mouseover text, because when they click on the item, the I close the menupopup. I mean something like what's shown at this site:

http://www.kingsquare.nl/cursormessage

The normal way of doing this would be with javascript and a div that would have the text I want to show. Unfortunately, I've discovered that the toolbarbutton can't have an effect on the main window, which is where I'd need to place the div to show. I've tried getting JQuery to work and haven't been successful either.

Any help would be greatly appreciated.

Thanks!

© Stack Overflow or respective owner

Related posts about firefox

Related posts about xul