How do I hide all menu's in v5+

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
bmc_nulogic
Beginner
Beginner
Posts: 4
Joined: Mon Jul 05, 2004 2:34 pm
Location: NI
Contact:

How do I hide all menu's in v5+

Post by bmc_nulogic »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
bmc_nulogic
Beginner
Beginner
Posts: 4
Joined: Mon Jul 05, 2004 2:34 pm
Location: NI
Contact:

Post by bmc_nulogic »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

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://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://milonic.com/whatever.html;");
aI("text=Another Thing;url=http://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
bmc_nulogic
Beginner
Beginner
Posts: 4
Joined: Mon Jul 05, 2004 2:34 pm
Location: NI
Contact:

Post by bmc_nulogic »

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: Select all

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I get essentially the same response as Ruth - it's not available.
John
bmc_nulogic
Beginner
Beginner
Posts: 4
Joined: Mon Jul 05, 2004 2:34 pm
Location: NI
Contact:

Post by bmc_nulogic »

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.
Post Reply