HighDots Forums  

Firefox and onMouseOut event

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Firefox and onMouseOut event in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rupert Woodman
 
Posts: n/a

Default Firefox and onMouseOut event - 07-07-2007 , 12:34 PM







Hi,

I've developed a page which will display a number of images and when the
mouse moves over the image, some information about the image is displayed at
the cursor position (so as the cursor moves, so does the info - it's in a
DIV element). This generally works well.
However, I have a problem when I'm using Firefox 2.0 where when I move the
mouse, the DIV is shown, but as soon as I stop, the DIV disappears - it
seems that an onMouseOut event is fired - I expected this to be fired only
when I moved the mouse off the image. It works exactly as I'd expect when
using IE6.

Has anyone got any suggestions as to how I can achieve what I'm looking
for - i.e. display some info when I move the mouse over the cursor, and have
it disappear when I move the cursor off the image?

Many thanks



Reply With Quote
  #2  
Old   
Rupert Woodman
 
Posts: n/a

Default Re: Firefox and onMouseOut event - 07-08-2007 , 11:52 AM







Actually, it seems it's not a problem - my mistake.

For any of you wondering (and I'm sure there are loads of you!), it seems
that setting position of the DIV to the cursor position fires the onmouseout
event. Adding a couple of pixels to the X & Y co-ordinates resolves that.
Obvious with hindsight.

rgds



"Rupert Woodman" <NoEmail@com> wrote

Quote:
Hi,

I've developed a page which will display a number of images and when the
mouse moves over the image, some information about the image is displayed
at the cursor position (so as the cursor moves, so does the info - it's in
a DIV element). This generally works well.
However, I have a problem when I'm using Firefox 2.0 where when I move the
mouse, the DIV is shown, but as soon as I stop, the DIV disappears - it
seems that an onMouseOut event is fired - I expected this to be fired only
when I moved the mouse off the image. It works exactly as I'd expect when
using IE6.

Has anyone got any suggestions as to how I can achieve what I'm looking
for - i.e. display some info when I move the mouse over the cursor, and
have it disappear when I move the cursor off the image?

Many thanks




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.