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: Saturday July 14 2012 - 06:07:10

Preselected menu


Poster: Luis
Dated: Friday May 8 2009 - 22:35:40 BST

Hi, please could you tell me how can I show an option of the amazon menu to appear the first time as selected ( first level ).
Thanks

Re: Preselected menu


Poster: Ruth
Dated: Saturday May 9 2009 - 6:53:18 BST

Hi,

I will need an example page and a more in depth explanation of what you want.

You can have a submenu showing and the main item 'matching' by using openmenusbyurl.js module, which will open a submenu when the urls match, and by setting the page properties in the menu_data.js file.

Go to http://www.milonic.com/ you will see that the Home item in the menu has a double red arrow and the text color is red. That is a result of setting the properties pageimage="db_red.gif"; and pagecolor="#aa0000"; in the style for the main menu. So, since the home item url is http://www.miloinc.com/ when you are on that page, the page properties change the item.

Ruth

Re: Preselected menu


Poster: Luis
Dated: Monday May 11 2009 - 19:53:37 BST

Hi, thanks for your help.
In this url there is an example of what we want to do:
http://200.24.214.66:7575/testtaglibMer ... ample.html
or
http://200.110.78.50:7575/testtaglibMer ... ample.html


After the user is authenticated, he/she enters the application with the option "Mis Mensajes" already opened. What we need is that this opcion appear like selected in the menu (image 2).
Then , if the users clicks in other part of the menu like "Productos", then the opction product appears selected ( wich is the norma behaviour ) ( image 3).

Thanks

Re: Preselected menu


Poster: Ruth
Dated: Tuesday May 12 2009 - 0:05:45 BST

Hi,

I'm not sure on this, I have posted to Milonic for help. Now, if this is a web page, then you can use openmenusbyurl.js and when you click on an item and it takes you to a webpage, then the submenu should be open. Here is a demo. Just click on any of the items, or on any of the subitems and when you go to that page you'll see the submenus are open. This is set up with only the submenus having links, but you can do it from a main menu also. If what you want is something different, I have to wait for Milonic to respond.

http://support.milonic.com/demos/openme ... /index.htm

Re: Preselected menu


Poster: Luis
Dated: Tuesday May 12 2009 - 21:28:03 BST

Hi,
Thanks for your answer,
Yes, the image I sent was from a web page.
We tried openmenusbyurl.js, but it seems that it does not work with frames.
I forgot to tell you that we are using the amazon menu with frames.

Thanks.

Re: Preselected menu


Poster: Luis
Dated: Tuesday May 12 2009 - 21:29:43 BST

Hi,
openmenusbyurl.js works fine when used without frames.
But we are using the amazon menu with frames, and then it does not work.

Thanks
Luis

Re: Preselected menu


Poster: Ruth
Dated: Tuesday May 12 2009 - 23:37:31 BST

Hi,

Well, I would need your frameset and menu in order to see if I could figure something out for you. Without your layout and the menu with some links, I can't really experiment to see if there is some other way to do it or make any suggestions to help. I'm sorry. About the frames, the reason it doesn't work is because, more or less, frames is like having a different browser window open for each frame in the set. So, the openmenusbyurl.js when you click a main item and open a page in another frame, it can't read that x page is there.

Ruth