Navigation button colur stays rolled over colour after click

It doesn't matter if you do all the error checking in the world, or if you have the most beautiful graphics, if your site or application design isn't usable, it's not going to do well. Get input and advice on usability and user interface issues here.

Moderator: General Moderators

Post Reply
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Navigation button colur stays rolled over colour after click

Post by hairyjim »

Hi all,

Within a products section of my website I have several modules related to a product. What I want is to have a navigation bar that has the names of each module as links throughs to the relevant module pages.

What I would really like to be able to achieve is when a particular module button is clicked and the relevant page is loaded the colour of the clicked button is different to the rest on the navigation bar as an indicator to the module page they are viewing.

One way i thought of doing this ws to have a different navigation bar for each module section with the relevant button being a different colour, but this seems an awkward design.

Could someone point me in the direction to a more straight forward solution to this.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Well you can set the colour of visted links with vlink="" in the body tag using html or with a.visited {} in css.
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

I only wish the button colour to be different if they are viewing that section.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Just use some php to check the current page - to figure out what section its in - and then give the link the desired class to make it coloured.
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

I was kinda hoping not to pass page vars through the URL.

But it would work nicely I suppose.
Post Reply