Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Building menus


  • From: javascript@xxxxxxxxxx (Andrew Gibson)
  • Subject: [Javascript] Building menus
  • Date: Fri, 22 Feb 2002 11:37:55 +1300

I'd say what you have to do is work out where the mouse is, if it's outside
the menu, block, use your
display:none  or visibility='hidden' then. Use a document.onmousemove event
to track the position of the cursor.

Andrew Gibson


Subject: Re: [Javascript] Building menus


> Hi!
>
> I tried it but it doesn't work as I hope it would. If I click outside the
> menu it is still open.
>
>
> Bye,
>
> Iztok
> ----- Original Message -----
> From: "Dan Costea" <costea@xxxxxxxxxxxxxxxxxxxxxx>
> To: <javascript@xxxxxxxxxx>
> Sent: Thursday, February 21, 2002 08:37
> Subject: Re: [Javascript] Building menus
>
>
> >
> > > Hi!
> > >
> > > I have a problem with a menu I'm building. I've built it with <div
> > > style="visibility: hidden/visible;"> and 'visibility' and 'hidden'
> > property
> > > is triggered by Javascript. But I want the menu to disappear if the
user
> > > clicks outside the menu. Anyone?
> > >
> > > Bye,
> > >
> > > Iztok
> >
> >
> > Use:  style="display: none/block".
> > (see:
> >
>
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
> > erence/properties/display.asp)
> >
> >
> > Dan.
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript@xxxxxxxxxx
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>