[Javascript] Suppressing mouse-over events

Matt Barton javascript at mattbarton.org
Wed Mar 24 07:55:15 CST 2004


It doesn't need to - as long as the popup's parent keeps track of whether it
is currently the topmost window I can determine whether to show the popup
when the image is onMouseOver'd.  That's the theory anyway.

M

> as far as I know, the popup object created with window.createPopup can't
> take the focus.
>
> ----- Original Message ----- 
> From: "Matt Barton" <javascript at mattbarton.org>
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Sent: Wednesday, March 24, 2004 3:39 PM
> Subject: Re: [Javascript] Suppressing mouse-over events
>
>
> > > Have onfocus and onblur-handlers on the window that contains your
menu,
> > > setting a variable (bFocus = true/false) when the window focus is
> > > changed. On the onmouseoverevent all you have to do is check the
bFocus
> > > variable. If it's false, then your window is out of focus, so don't
> > > display the menu.
> > >
> > > Makes any sense? :)
> >
> > Perfect sense yes, thank you.  If that does the trick (and I'm sure it
> will)
> > I'll owe you a pint...
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net




More information about the Javascript mailing list