Current Page Menu Highlighting Problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
lloyd_borrett
Advanced
Advanced
Posts: 12
Joined: Thu Jul 01, 2004 8:15 am
Location: Cranbourne North, Victoria, Australia
Contact:

Current Page Menu Highlighting Problem

Post by lloyd_borrett »

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.
marty
Site Admin
Posts: 116
Joined: Tue May 21, 2002 6:48 pm
Location: Birmingham, UK

Post by marty »

Hi Lloyd,

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

Code: Select all

horizStyle.pagecolor="#ffffff";
horizStyle.pagebgcolor="#000000";
-Marty
marty
Site Admin
Posts: 116
Joined: Tue May 21, 2002 6:48 pm
Location: Birmingham, UK

Post by marty »

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

offbgcolor="#f4f4f4";
pagebgcolor="#f4f4f4";

offcolor="#000000";
pagecolor="#000000";
-Marty
User avatar
lloyd_borrett
Advanced
Advanced
Posts: 12
Joined: Thu Jul 01, 2004 8:15 am
Location: Cranbourne North, Victoria, Australia
Contact:

Post by lloyd_borrett »

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.
marty
Site Admin
Posts: 116
Joined: Tue May 21, 2002 6:48 pm
Location: Birmingham, UK

Post by marty »

Me too!

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

-Marty
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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

This too will confuse the menu.

-- Andy
Post Reply