Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:22

Main menu open onclick?


Poster: stevvi
Dated: Monday October 20 2003 - 19:12:49 BST

Hi,

I'm sure this is a simple problem and i'm being totally stupid, but how do I get a main menu to show the submenus onclick rather than onmouseover? I've tried using "openonclick" just about anywhere and everywhere but have had no luck.

Concise advice would be greatly appreciated.

Thanx.


Poster: fredlongworthhighschool
Dated: Tuesday October 21 2003 - 16:37:36 BST

Hmmm, doesn't work for me either.


Poster: Hergio
Dated: Tuesday October 21 2003 - 23:04:21 BST

Are you doing it exactly as the example shows it on the sample pages? What RC of the menu are you using? What browser are you using? Got a URL? Give us somethin to chew on! hehe :lol:


Poster: kevin3442
Dated: Saturday October 25 2003 - 0:49:08 BST

Hi stevvi,

openonclick is a menu item property, so it must be defined for each individual menu item that you want it to affect. So, for example, if a menu item -- defined with aI() -- uses the showmenu property to open a submenu, but you don't want the submenu to open unless the user clicks the menu item, you would add openonclick=1 to that item's aI() line. Like so:

Code: Select all

aI("text=Item Text;showmenu=Submenu Name;openonclick=1;");

That way, the user must click on the item named "Item Text" to open the submenu named "Submenu Name". openonclick=true should also work.

Hope that helps,

Kevin


Poster: Hergio
Dated: Monday October 27 2003 - 17:47:37 GMT

Stevvi, were you able to get this working? If tou did as Kevin said and it worked, let us know. If not, throw us a URL so we can take a look.

RC18 doesn't work for me either


Poster: nbarth
Dated: Monday October 27 2003 - 19:05:30 GMT

Stevi and Hergio,

I am using RC18 and it is not working for me, as well. Could this be a bug? I have tried it as a menu item option and as a straight menu option using both "openonclick=1;" and "openonclick=true;", neither one worked.

Let me know if you figure it out, and I will do the same.

Nicholas


Poster: John
Dated: Monday October 27 2003 - 20:30:47 GMT

Works fine for me, guys - RC18...

Code: Select all

   aI("text=Diversions;showmenu=diversions;image=/sai/graphics/xpblank.gif;status=Diversions;openonclick=1;");

Got it


Poster: nbarth
Dated: Monday October 27 2003 - 22:04:38 GMT

Ok,

I've been able to get it to work. I was using the wrong menu.js file. :? Sorry. However, in version 3, if you clicked on one menu you could mouse over another menu and that menu would open it's submenu even if it also had the onclick option set. Is the change on purpose or is this something that should not happen? I did like the fact that, in version 3, you could click one menu and browse until you made a selection, and if you moved the mouse off the menu it would close and you would be reqired to click again. In version 5 it requires you to click on each menu individually.

Nicholas

Re: Got it


Poster: kevin3442
Dated: Monday October 27 2003 - 23:41:29 GMT

nbarth wrote:...I did like the fact that, in version 3, you could click one menu and browse until you made a selection, and if you moved the mouse off the menu it would close and you would be reqired to click again. In version 5 it requires you to click on each menu individually.

An excellent point Nicholas. In other words, when a click was required in v3, the menu acted more like a standard application menu bar (at least a Windows app), allowing the user to click on one main menu item, then browse through the other menus by simply pointing at other main menu items. In v5, since it's an item property, the user has to click on each item to open the submenu it calls. I would also like the v3 approach, or at least the option of it.

Perhaps there could be two openonclick properties: one would be a menu property and one would be a menu item property (like the current one). There are examples of this with other properties already. The onenonclick menu property would affect the entire menu, causing it to behave the way Nicholas descibed for v3. The openonclick menu item property would behave as it does now, and would override the menu property.

Thoughts?

Kevin