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

How do I hide all menu's in v5+


Poster: bmc_nulogic
Dated: Saturday September 25 2004 - 18:56:47 BST

Hi All,
I'm a little new to the milonic menu so apologies if this is either a) a little left of insane or b) covered elsewhere.

I'm using the menu to create a simple tab selector strip. For example, I've defined a horizontal menu with items - all of which tie to a submenu so that the html/php etc will be picked up by the menu system and the menu heading highlighted correctly.

Only one problem, the submenus ! Is there any way that I can suppress the submenu's from displaying when the user passes over the menu headings or clicks on them.

Best Regards,
Brian.


Poster: Ruth
Dated: Saturday September 25 2004 - 20:48:01 BST

If you don't want the submenus to 'show' then don't put the showmenu= into the main menu item for the submenu, though I have no idea why you'd want to stop the submenus.


Ruth


Poster: bmc_nulogic
Dated: Saturday September 25 2004 - 21:06:30 BST

Hi,

I want to stop the submenus so that I can get the main menu items to show as highlighted whenever I access a URL to a resource thats defined in the submenu items - not via the submenu itself.

try...

http://217.41.16.98:29292/

..and click on 'About nulogic'. The correct page is loaded and the 'About nulogic' item is highlighted.

Now scroll to the bottom of the page and click on the 'Terms of Use' link. It sits in the same directory as the about page...and I'm trying to get the menu system to recognise that and highlight the 'About nulogic' menu item.

Don't know if this is possible. I know this is really stripping down the menu functionality, but I'm using it in full elsewhere and its great - I though I'd try and reuse it for this.

Regards,
Brian.


Poster: Ruth
Dated: Sunday September 26 2004 - 0:57:10 BST

That page doesn't exist. 'page not found' I'd prefer seeing your menu, there is a way to do what you want as to pagematching for links outside the menu. I just kind of need the actual menu to explain it so you understand. It's not hard just involved to explain. Let's say you have a main menu with the text Home AboutUs Whatever ANother Thing. Using this, here's a sample for the about us page matching
Code:
with(menuStyle=new mm_style()){
whatever style you have;
}

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=About Us;url=/aboutus/index.shtml;status=About Us;showmenu=AboutUs;");
aI("text=Whatever;url=http://www.milonic.com/whatever.html;");
aI("text=Another Thing;url=http://www.milonic.com/another_thing.html;");

}

with(milonic=new menuname("AboutUs")){
style=menuStyle;
overflow="scroll";
aI("text=History;url=http://www.whatever.com/aboutus/history/index.html;pagematch=/aboutus/history/;");
aI("text=News;url=http://www.whatever.com/aboutus/news/index.html;pagematch=/aboutus/news/;");
}


Now, when you go to the index page in the aboutus/history/ folders because you have pagematch=aboutus/history/ then when you're on the main page of that if you have links and those links are IN the aboutus/history folder then you will continue to have the pagebgcolor highlighting the menu.

To be more specific as to your menu, I'd have to see the menu itself [I'm a hands on, not a code person]

Try this link to a site that uses the pagematch. Click on the AboutUs then on the News & Events in the submenu, when you get to the page, click on the Archives link below the menu. The match will stay in the menu.
pagematch example

Ruth


Poster: bmc_nulogic
Dated: Sunday September 26 2004 - 9:59:30 BST

Hi,
Thanks for the advice...that worked well. The server is up and running again if you are interesting in seeing the menu at work.

I've set the 'top' value for the menu to run it off the bottom of the screen like so....

Code:
with(milonic=new menuname("AboutUs")){
style=hmenuStyle;
left=0;
top=2000;
aI("text=Terms;url=/about/terms.html;pagematch=/aboutus/;");
aI("text=Trademarks;url=/about/trademarks.html;pagematch=/aboutus/trademarks/;");
aI("text=Privacy;url=/about/privacy.html;pagematch=/aboutus/privacy/;");
aI("text=Intellectual Property;url=/about/ipr.html;pagematch=/aboutus/ipr/;");
aI("text=Disclaimers and Change Notice;url=/about/disclaimers.html;pagematch=/aboutus/disclaimers/;");
}


This works fine, but I was wondering if there is a way in which the submenus can be placed completely off screen. When I set top = -400 or left = -100, the menu code (being clever ;) ) adjusts the values to ensure the menu stays on screen.

Best Regards,
Brian.


Poster: Ruth
Dated: Sunday September 26 2004 - 13:02:46 BST

http://217.41.16.98:29292/ The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. I click your www and that works to a page with just the name at the top left, but the link to whatever that test page is doesn't.

I'm not a code person and can't read what you code and just visualize what that's doing to the menu and subs and say, well you can do this or you can't. I need to see the menu and see what you're trying to do, see the design colors and layout, then a good percentage of the time I can either figure some way to do it or that it most likely will need a function [though I couldn't write one]

Ruth


Poster: John
Dated: Sunday September 26 2004 - 17:05:51 BST

I get essentially the same response as Ruth - it's not available.


Poster: bmc_nulogic
Dated: Sunday September 26 2004 - 21:52:49 BST

Guys,
Apologies....I've got a problem with my router and the IP address for the site is not linked directly to my machine behind the router :(

I'm trying to get the problem resolved...I appreciate your help with this issue.

Best Regards,
Brian.