Active link colour

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Al Camino
Beginner
Beginner
Posts: 1
Joined: Sat Jan 22, 2005 12:46 am

Active link colour

Post by Al Camino »

Is there any way of setting an active link via css classes so that visitors can see which page they're currently visiting? There's the onclass and the offclass, there's even the visitedcolor but I can't find anyway of setting a different style for the active/current link.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

If you're talking about the menu highlighting on the particular item that is the current page you use pagebgcolor and pagecolor, or pageimage if you want images, or pageborder. So, for example if you wanted the item bgcolor to be red and the font color black when you are on that item's page, you would add this to the style definition:pagecolor="#000000";
pagebgcolor="#ff0000";. you actually shouldn't have to use both, I would guess you can use just the pagecolor= and then only the text color would change.

There are links below to various style properties with more indepth explanations of each, and on the Milonic Home Page under DHTML Menu, there's a link for quick reference guides which also show functions and methods and global variables.


Ruth
Post Reply