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

can alwaysvisible on a submenu be dynamic?


Poster: Sandra
Dated: Sunday December 31 2006 - 21:13:20 GMT

Hello

http://www.msquaredinc.com/vision/index.html

Basically I have 3 questions
1 - can alwaysvisible on a sub menu be dynamic relative to it’s parent menu?
2- How can I make url and showmenu work at the same time? (I’ve tried it on the Research tab on the site, url above, and the sunve dosent show and the research tab then says blue when clicking on the next tab, education.)
3- And can I make top= and left= menu positions relative to a particular page. (Setting relative offsets doesn’t seem to work in this case) For example my home page has a taller masthead then the rest of the site, and the menu needs to be in a different location. I currently have 2 data files. One for interior pages and one for the home page. But it’s all repeat information the only thing that changes is the top & left positions.

Here’s what I’m trying to do:

I want to have a url and showmenu on the same menuitem. So when clicking on a tab it goes to another page. When I apply the url and showmenu the showmenu dosent work only the url. At the same time I want the sub menu for that tab to be present. I want the submenu for that tab to be always visible when on one of the pages under the parent tab.

For example if you look at http://www.msquaredinc.com/vision/index.html I would like the home page tab to be highlighted (in this case blue) and the sub menu “About vision | Contact Us | Support & FAQs” to be alwaysvisible. I would like this to remain when on any of the submenu pages.(ie about , contact and support pages)

However if I then click on the Services tab I want the home submenu to go away and the Services Submenu to be visible and remain visible with the tab highlighted blue when on any of the submenu pages.

Right now as soon as I click on a submenu item the sub menu disappears when I go to another page in the same submenu.

I’ve tried splitting up the menus and applying them to the individual pages. For example having one menu_data.js file just for the tabs and then individual home_submenu.js services_submenu.js etc, and then attaching home_submenu.js to “Home | About vision | Contact Us | Support & FAQs” with the alwaysvisable set to on. Same for services, research etc) This works for keeping the submenus up on their respective pages and gets around the url and show menu issue. However the top tab is no longer highlighted.

Help!
:?


Poster: Ruth
Dated: Tuesday January 2 2007 - 18:19:24 GMT

Hi,

As to the url and submenu being usuable on the same click, that's not going to happen because as soon as you click the item the menu takes you to another page, that is, it isn't going to say 'well, I have a showmenu so let's take 30 seconds and show the submenu and then go to the other page'. However, you can use the openmenusbyurl.js module and when you get to the page the submenu should be visible. You can get that module on the bolt-on modules page. It's down toward the bottom and called the Automatic Menu Opening Module

http://www.milonic.com/menumodules.php

I'm working on the other question about position and will post back, probably tomorrow.

Ruth


Poster: Ruth
Dated: Thursday January 4 2007 - 6:27:04 GMT

Hi Sandra,

Here is a link to your pages. I did the main plus two others. When you get there, click on the Home button then on the About. Once at the about page click on the Research and on the Trading Recommendations.

The reason for the 3 pages was to show you how the 1st has the bigger header and the other two have the smaller one and the other two will show the menu when you get to the pages.

LINKS REMOVED

To do what you wanted, that is use one data file for all pages, you need to place it relatively. I also had to make new menu images for the main menu to keep your look and be able to put it on the pages that had different header sizes. I put it in a table since that is the easiest and is more uniform across browsers.

You should be able to figure out what was done from the data file and the pages themselves.

Please let me know when you have the files so I can remove your pages from my site. Thanks

Ruth

Thanks Ruth


Poster: Sandra
Dated: Friday January 5 2007 - 0:09:01 GMT

I've downloaded the zip file and will see if I can figure it out.

Thanks so much for the help Ruth.

Sandra


Poster: Ruth
Dated: Friday January 5 2007 - 0:23:41 GMT

Hi Sandra,

You're welcome. In reality what I did was change the top part of your pages from divs to tables. That way the menu can be used the same on all pages and just use a spacer image for the different height on the main page. But, since the menu is in the bottom cell of the table, then everything, including your content divs will just move 'down' on the main page and 'up' on the interior pages where the header bg is smaller in height.

If you have any question, please post back.


Ruth