openonclick no longer works in v5.05, v5.06

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
djcowan
Beginner
Beginner
Posts: 2
Joined: Mon Mar 15, 2004 3:06 am

openonclick no longer works in v5.05, v5.06

Post by djcowan »

Submenu doesn’t appear at all when menu clicked. javascript:void(0) appears in status bar.

Have only tested on IE6. Works fine with v5.04 but I need the other bug fixes.

has anyone else had problems with openonclick?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi,

Don't have v5.06, but I did try an openonclick test with v5.05 and it didn't work. Just tried the same test with v5.07 (posted earlier today) and openonclick worked fine... so it looks like v5.07 will solve your problem.

Kevin
wolfeman
Beginner
Beginner
Posts: 2
Joined: Fri Mar 19, 2004 3:05 pm

Post by wolfeman »

In version 3 when you used "openonclick", when you clicked on a "main menu" item, the sub-menu for that item would open, and then you could scroll across the other main menu items and their sub-menus would open automatically (without having to click on each main-menu item). Thus, by using openonclick in version 3, you could get the menu to behave just like the menu does in Windows applications, such as Internet Explorer (you click on "File" to get it's sub-menu to open, and then you can scroll across to "Edit", "View", etc. and their sub-menus will open without having to click again on "Edit", View", etc.)

In version 5.07, when using the openonclick you have to click on each main menu item to get it's sub-menu to open. Is there a way to get version 5.07 to behave the same way as version 3 in regards to the openonclick?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

wolfeman wrote:...Is there a way to get version 5.07 to behave the same way as version 3 in regards to the openonclick?
Yes. Put

Code: Select all

retainClickValue=1;
at the top of your menu_data.js file, where the other global values, like _menuCloseDelay, are. That should produce the behavior you want.

Hope that helps,

Kevin
Post Reply