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

Current Page Menu Highlighting Problem


Poster: lloyd_borrett
Dated: Thursday July 1 2004 - 8:21:17 BST

G'day...

I am having problems with the Current Page Menu highlighting feature on my menu at http://www.borrett.id.au.

Sometimes, but very rarely, the menu will show what the current page is. But most of the time it won't.

I must be missing something very obvious. Can anyone pleaee help me?

Best Regards, Lloyd.


Poster: marty
Dated: Thursday July 1 2004 - 8:55:52 BST

Hi Lloyd,

I'm no expert but this might have something to do with it:

Code:
horizStyle.pagecolor="#ffffff";
horizStyle.pagebgcolor="#000000";


-Marty


Poster: marty
Dated: Thursday July 1 2004 - 9:05:05 BST

Also in the your vertStyle the off mouse colors are the same as your pagecolors so you will not see the difference once clicked (the same for horizStyle)

Code:
offbgcolor="#f4f4f4";
pagebgcolor="#f4f4f4";

offcolor="#000000";
pagecolor="#000000";


-Marty


Poster: lloyd_borrett
Dated: Thursday July 1 2004 - 9:38:37 BST

Right now I'm not trying to show the Current Menu Page by changing the text or background colours, just by adding the image.

Though if I don't use the image and set appropriate background and text colours, I still get the same results. Most of the time no highlighting, but very rarely it does.

I suspect it has something to do with the relative paths to pages, and/or the server reporting different paths based on the URL used to get to the page.

For example if the URL http://www.borrett.id.au/default.htm is used in the browser, the Home page on the menu is highlighted. But if the URL http://www.borrett.id.au is used, the Home page entry isn't highlighted.

If you go to my Forums using the menu, Forums is highlighted on the Vertical menu, but Insight isn't highlighted of the Horizontal menu.

It may have something to do with the fact that I have four different menu_data files to handle different paths. One for the home page where URLs are relative to the root, one for most pages where URLs are relative to a sub-directory, one for the blog pages where full URLs are used, and one for the forum pages where full URLs are used, but the menu is positioned slightly differently.

But even when the users is just moving between the same menu_data file, the current page highlighting doesn't seem to work properly.

It's really confusing me.


Poster: marty
Dated: Thursday July 1 2004 - 10:00:29 BST

Me too!

I think you'll have to wait for the experts over the water to wake up.

-Marty


Poster: Andy
Dated: Thursday July 1 2004 - 10:11:11 BST

Try changing the link in the first item from Default.htm to /

This means that the link will always be the same. Although the server knows that / is the same as Default.htm the menu doesn't know this.

Hope this helps
Andy


Poster: Andy
Dated: Thursday July 1 2004 - 10:13:38 BST

Also, try removing the ../ and replace it with / for all menu items url parameter.

This too will confuse the menu.

-- Andy