[Javascript] Suppressing mouse-over events

Costea Dan costea.dan at ssi-schaefer.ro
Wed Mar 24 06:12:41 CST 2004


I had a similar problem (I hope I undersud corectly). In my case, I opened
the window.createPopup object when right-click an object. If the
right-clicked object was a combobox (<select>), the popup was opend, and
when the user made alt+tab the popup remain opened. I fixed this by writting
a js function on "onblur" event, that was closing the popup. In your case,
maybe you can use a function to close the popup on "onmouseout" event (I
think it is fired when you alt+tab).

Regards,
Dan Costea.

----- Original Message ----- 
From: "Matt Barton" <javascript at mattbarton.org>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Wednesday, March 24, 2004 1:58 PM
Subject: [Javascript] Suppressing mouse-over events


> Hi,
>
> I'm coding for a system (compatibility with IE5.5+, other browsers are not
> an issue) which uses the onMouseOver event of a graphic to popup a menu
(the
> menu appears in a popup object - as in window.createPopup()).
>
> What I'm trying to do is suppress the onMouseOver event when the browser
is
> not the top-most window.  The situation my users are getting is that
they'll
> be using the app then alt-tab away to their email or some other
application,
> but if the menu-triggering graphic is still on the screen, the onMouseOver
> event will still fire and display the menu *over the topmost application*.
>
> I'm not convinced that there is a simple way to do this (and that's what I
> told my boss!), but thought I'd be better off asking the list...
>
> Any help greatly appreciated,
>
> Matt
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list