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

again pagematch/url - the example www.milonic.com (index)


Poster: noicenotea
Dated: Sunday October 10 2004 - 0:35:07 BST

hi again,
i think i read all/the most threads in this forum about this theme.
but there is still the one and only question
how can a realize the pagematch / highliting like its done on http://www.milonic.com
the most important thing for me is how can i add some pagematching
on top/main menu or any menuitem that have some submenus without placing the url property on that. i wont have a link on those menuitems to a page.
all that its done on the milonic page itself. i spend much hours to figure out how i can do this but without success.

pls help my hairs are getting deep grey :-)

regards noice


Poster: Ruth
Dated: Sunday October 10 2004 - 2:40:00 BST

The Milonic site is not using pagematch. It is using the pagebgcolor= and pagecolor= If you look at the menu_data.php file that gets downloaded when you go to the Milonic home page, you will see this in the style parameters section [the part with the onbgcolor= offbgcolor= etc.
Code:
     pagebgcolor = "#ECF4F9";
     pageimage="/images/db_red.gif";
       pagecolor = "#000000";   

This is what happens with this code: when you go to About Milonic, which is not a link, and click on About Us in the submenu, when aboutus.php loads the About Milonic becomes the pagebgcolor and the About Us becomes the pagebgcolor and gets the pageimage placed on it. Yo don't need the pageimage, unless you want some special image to be placed when the page gets the 'active' that is, pagebgcolor. Hope that helps.

Ruth


Poster: noicenotea
Dated: Sunday October 10 2004 - 9:01:26 BST

ruth thx for your fast answer but the milonic menu has more functions that i want to use :

1. if i only use pagebgcolor, pagecolor the PARENT menus will always stay dark :D (no highlighting)

2. the subimages on PARENT menus (no links have sub menu[s]) are changing too not only on mouse over they stay changed when a submenuitem is clicked.

of coursei had a look on the menu_data.php yesterday ... but there isn othing in that would help to figure out how its done.

i hope you could understand - excuse my english thats far away from perfect ;)

noice

add on


Poster: noicenotea
Dated: Sunday October 10 2004 - 9:44:19 BST

i was not able to find an example page that is working like the one on http://www.milonic.com
(i was looking on http://www.richardcranswick.com/, http://www.citytech.cuny.edu --> an example you posted in an earlier thread ruth) these pages are working fine with the pagematch property but all PARENT menus are links / on milonic they arent!
i although tried typ=disabled on a menutitem but than this menu cant have submenus and they have a strange font color on ie.

regards noice


Poster: Ruth
Dated: Sunday October 10 2004 - 18:40:08 BST

As far as I know this is how the pagebgcolor works. It doesn't matter if the main menu item is a linked page or has a show menu. If it's a linked page itself, when you click it and the page loads the main menu item highlights. If it is not a link and only has a showmenu, the only way to be highlighted is to go to one of the pages in the submenu. If you have a main menu item called My Test and in the menu_data a showmenu=mytest with pages listed in it, then when you click on any of those pages and go to them the main menu item My Test will highlight and the submenu item you clicked will highlight.

If you are testing this on your desktop, you will not get a pagebgcolor highlight or a pagematch unless the URL you have listed in the item is the same as the page url you are tesing. So if the page you are testing is called mypage.htm then the url= in the submenu has to be url=mypage.htm. This is when testing on the desktop, you need to put it back to the real url when you put it on the web. If this is not the problem, if it is on the web that you are not getting the highlight, then we need to see the menu on the web so we can figure out what's happening, we'd need you to put up a main test page and at least one submenu page.

Ruth