Highlight an item depending of the opened page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
cipi
Beginner
Beginner
Posts: 1
Joined: Thu Dec 04, 2003 10:45 am

Highlight an item depending of the opened page

Post by cipi »

Hi,

I have a frame based page.

The main menu is image based and it is rollover.

When you first enter the site I want that the home button be highlighted (use the rollover image not the original one) when you first enter the page.
The same with all the other pages.

If I click on a submenu I want that the main menu item that contains the submenu to be highlighted.

Is it possible?

Thanks
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Assuming that your menu is in one frame and your content is in another, it is not possible using the menu's built-in properties, since they work based on matching the menu item's url with the currently displayed url ... the url for the frame containing the menu never changes, so there's nothing to match. You could do it, but you'd have to code it yourself.

Kevin
Post Reply