Is it possible to highlight main menu items from a submenu?
Is it possible to highlight main menu items from a submenu?
I would like to highlight the top menu (and the path all the way down) from accessing a page deep down in my submenu?
The "Current Page Item Font Color" and "background color" settings work fine for the menu items having no submenus but when accessing a page in a submenu it does not highlight the parrent top menu item.
Help!
The "Current Page Item Font Color" and "background color" settings work fine for the menu items having no submenus but when accessing a page in a submenu it does not highlight the parrent top menu item.
Help!
There is a download at http://www.milonic.co.uk/menu/madtoaste ... 3.5.02.zip that will do what you want.
Although not fully supported by Milonic this will appear as standard in version 4 later next year.
Regards
Andy
Although not fully supported by Milonic this will appear as standard in version 4 later next year.
Regards
Andy
What do I need to do?
Hi:
I would like very much to reproduce this behaviour. Please tell me what is special about this menu_array.js file and produces this behaviour?
Stan
I would like very much to reproduce this behaviour. Please tell me what is special about this menu_array.js file and produces this behaviour?
Stan
Hi Stan,
Hope you don't mind me jumping in. The changes do not affect the menu array file (your current menu_array.js will be just fine). The "mad toaster" functionality is produced by additional code in mmenu.js, added by another user. The download Andy provided will include a different mmenu.js file that you can try using. Note, however, that it is version 3.5.02, so it will not have the latest small changes from 3.5.03 - 3.5.12 (you can see the list of additions here).
Hope that helps,
Kevin
Hope you don't mind me jumping in. The changes do not affect the menu array file (your current menu_array.js will be just fine). The "mad toaster" functionality is produced by additional code in mmenu.js, added by another user. The download Andy provided will include a different mmenu.js file that you can try using. Note, however, that it is version 3.5.02, so it will not have the latest small changes from 3.5.03 - 3.5.12 (you can see the list of additions here).
Hope that helps,
Kevin
One little glitch...
Thanks for your reply Kevin,
I got it working fine now, except if I use a "swapimage" setting on a sub menu item (which I guess was the cause of my problem). Any fix or workaround would be greatly appreciated!
Stan
I got it working fine now, except if I use a "swapimage" setting on a sub menu item (which I guess was the cause of my problem). Any fix or workaround would be greatly appreciated!
Stan
Kevin,
Sorry, this is not yet on air. I will try to upload as soon as possible, perhaps later this week.
In a simple two-level menu structure, if I use an entry like the following in a sub-menu:
everything goes well, and the sub-menu of the page is highlighted in the main menu whenever the page is displayed.
In contrast, if I use the following entry:
the sub-menu of the current page is not highligthed in the main menu (but the whole menu is otherwise behaving correctly, including the image swapping).
Stan
Sorry, this is not yet on air. I will try to upload as soon as possible, perhaps later this week.
In a simple two-level menu structure, if I use an entry like the following in a sub-menu:
Code: Select all
,"<img src=menu315x15.jpg border=0> La fábrica de sueños","LaMatatena-470.htm",,"La fábrica de sueños",1
In contrast, if I use the following entry:
Code: Select all
,"<img src=menu315x15.jpg border=0> La fábrica de sueños","LaMatatena-470.htm swapimage=MatatenaRoja15.gif",,"La fábrica de sueños",1
Stan
Hi Kevin:
You can reproduce the problem simply by replacing the following entry in the menu_array.js file provided by madtoaster:
with this one:
Stan
P.S. The script seems to ignore that the url may be followed by alternate actions...
You can reproduce the problem simply by replacing the following entry in the menu_array.js file provided by madtoaster:
Code: Select all
addmenu(menu=["m_company",,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
," Form","main_2_1.htm",,"Form",1
])
Code: Select all
addmenu(menu=["m_company",,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
,"<img src=arrow.gif> Form","main_2_1.htm swapimage=arrowdn.gif",,"Form",1
])
P.S. The script seems to ignore that the url may be followed by alternate actions...
I am not sure that I use the best technique, but I use a different menu_array.js in each folder... somewhat cumbersome, but it works.reds wrote:Hi,
question :
is it possible to use the highlight current item when not all pages are set in thye root, but in separate folders ?
help would be greatly appreciated !!
Björn
Stan
Current page not highlighted when loaded at an anchor
It seems that if a page is loaded at a specific anchor (page.htm#anchor), then the current page is not highlighted in the menu (in my case, the anchor is not specified in the menu, but in a link from another page). Anyone experienced the same behaviour?
Stan
Stan
Kevin,kevin3442 wrote:Stan,
What exactly happens (or doesn't) when you use a swapimage? Menu highlighting stops working? Can you provide a URL to the site in question?
Kevin
Here is the url: http://www.lamatatena.org/
You will notice that the second-level menu items do not have any swapimage, because when I specify one they stop highlighting the main menu.
Stan
Doing an update ?
Do you know if anyone has added the "mad_toaster" addition to the later versions of the mmenu.js file or is it a wait for version 4?
I've tried using the madtoaster file but no joy. The problem is with any page located in a subdirectory of the root directory, I get no highlighting of either the submenu or top menu items for these pages.Andy wrote:There is a download at http://www.milonic.co.uk/menu/madtoaste ... 3.5.02.zip that will do what you want.
Although not fully supported by Milonic this will appear as standard in version 4 later next year.
Regards
Andy
The only semi-weird thing I think I'm doing is that I'm using 2 menu_array files -- the only difference between the 2 is the path names used for the images and urls. Because my server doesn't seem to support root-relative links (e.g. /img/image.gif) I'm using relative links (e.g. img/image.gif), so the menu_array file loaded for pages in the root directory has links like "img/image.gif", while pages in a subdirectory use a menu_array_1 file that specify "../img/image.gif"
Hope the preceeding makes sense. Any help would be appreciated. There is a test server at home.cogeco.ca/~gastoorian/home.htm. (note that below the top level of menus only the "submenu test" items actually point anywhere).