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:49

Changing initial state dependant on URL


Poster: Marc_J
Dated: Monday April 4 2005 - 19:27:11 BST

I'm using a horizontal menu, with horizontal submenus, which reults in a menu which doesn't take up a lot of space on my page.

So, I've reserved the overall maximum space used by the menu just for the menu, i.e. the menu doesn't expand over any other content.

For each page, I'd like the menu to start dependant on the page URL.

eg: -

Main 1 | Main 2 | Main 3 | Main 4
->Sub 1 | Sub 2 | Sub 3

If the current URL is that of Sub 2, then instead of just the main menu showing (items 1 - 4) the menu would display the submenu which contains Sub 2 as an itial state, which would then be cancelled by any user interaction with the menu...

I hope this make ssense to someone....can it be done?


Poster: Ruth
Dated: Monday April 4 2005 - 20:43:54 BST

Yes, there is a Milonic bolt-on Module called openmenusbyurl.js which does just that. All you need to do is get the module, upload it to your site with your menu files and call it with the menu files, it should be called after the menu_data.js file. http://www.milonic.com/openmenusbyurl.js

Ruth