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

Highlight top nav


Poster: perldev
Dated: Friday July 15 2005 - 4:55:29 BST

I have menu with page match set:
[pre]
Cat 1 Cat2 cat 3
link11 link21
link12 link22
[/pre]
Where item22 is linked to js: top.Replace('something').

When click on link22, I would like to see "Cat2" is highlighted. But the page match won't work. Is there any function I can call in page22 to force Cat2 highlighted?

Thanks.

PerlDev


Poster: Andy
Dated: Friday July 15 2005 - 14:02:39 BST

There could be any number of reasons why the highlighting wont work.

As always, it will help if we can see the problem, a test URL will be of great help

Cheers,
Andy


Poster: perldev
Dated: Sunday July 17 2005 - 3:53:09 BST

You may use milonic index page as an example: About Milonic >> About Us

change
Code:
aI("text=About Us;url=/aboutus.php;image=/menuimages/18_about.gif;");

to
Code:
function Replace(x){_d.location.href= (x==:junk")?"/aboutus.php":"#";}
aI("text=About Us;url=javascript:Replace('junk');image=/...");


When you click on "About Us", it won't be highlighted.


Poster: perldev
Dated: Friday July 22 2005 - 14:32:50 BST

Another example will be: page url doesn't exist in the top navigation (milonic dhtml menu); I need in the particular page to call a JS function if exists any, to highlight the top navigation.

Is there such a function?


Poster: perldev
Dated: Friday July 22 2005 - 17:25:47 BST

Menu data:
Code:
with(style1=new mm_style()){
..
pagebgcolor="transparent";
pagecolor="#BB7D00";
subimage="/images/arrow.gif";
high3dcolor="#CCCCCC";
low3dcolor="#CCCCCC";
..
}

with(milonic=new menuname("m2")){
..
aI("text=Online Shopping;showmenu=m2")
..
}
with(milonic=new menuname("m2")){
itemwidth=230;
style=style1;
aI("text=Orders;url=javascript:parent.ReplaceMain('order');");
aI("text=Check Out;url=javascript:parent.ReplaceMain('checkout');");
..
}


The actual url of "Orders" is PlaceYourOrder.aspx; that of "Check Out" is CheckOutNow.aspx.

When I click on "Orders", neighther "Online Shopping" or "Orders" is hightlighted.

I tried itemOn( getMenuByName("m2") ), even it's not what I want, it's still not working...