Clicking outside of menu to make it disappear?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
vitalyb
Beginner
Beginner
Posts: 2
Joined: Sat Mar 20, 2004 11:11 pm
Contact:

Clicking outside of menu to make it disappear?

Post by vitalyb »

I made my menus OnClick. However, they still disappear when you move the mouse outside of them.

Is it possible to make the menus disappear only after you click somewhere else in the browser? Like the regular Windows menus.

Thanks.
ImageVitaly BelmanImage
Image
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I'm not sure but you might do a search, set it to version 5 only and version 5 forum and search for onclick, click functions and any other combination that come to mind :) . I'm not sure about setting it so that it reads if you click on the page and not on something in the menu, but I know there were a lot of posts about various onclick questions.


Ruth
czechsix
Beginner
Beginner
Posts: 3
Joined: Wed Mar 24, 2004 2:59 am

Post by czechsix »

I'm having the same problem...I was able to emulate windows menu functionality well with the old 3. version of the menus but I can't figure out a way to do this with the 5. version.

Also, I'd like to open on click, but if a menu is currently open, be able to mouse over the other menus and have them open on mouseover. Again, I'm trying to get as close to Windows as possible. Any help greatly appreciated!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Someplace in this forum is a post about click and something about retainvalue or something. I'm sure a search would find it.

Ruth
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

czechsix wrote:...Also, I'd like to open on click, but if a menu is currently open, be able to mouse over the other menus and have them open on mouseover....
Check this thread (probably the one Ruth had in mind).

Kevin
czechsix
Beginner
Beginner
Posts: 3
Joined: Wed Mar 24, 2004 2:59 am

Post by czechsix »

A million thanks Kevin, that did the trick! Now if I could only get the click-off to close working I'd be in great shape :D
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

czechsix wrote:...Now if I could only get the click-off to close working...
Not sure what you mean by this... ???

Kevin
czechsix
Beginner
Beginner
Posts: 3
Joined: Wed Mar 24, 2004 2:59 am

Post by czechsix »

Basically I'm trying to do what the first post is mentions, make it such that menus remain visible until I click off the menu anywhere on the page. I have yet to find a way to do this via searching previous posts...
Post Reply