Highlight current active subNav link on the same page and return previous to visited

JTM

New Member
I am building a website which contains a subnav and each of the nav buttons bring up a differnt image (in the same box within the index page). I would like the current link (the one that has just been clicked) to hold its current background color state until the viewer clicks a different link. Then the new clicked link should show as the current link (with my current background color choice) and the previous current link (and all other unclicked link options) should go back to thier normal background color state.

I am newer at Javascript and having some problems changing the current state - any help would be greatly appreciated.
 

PixelPusher

Super Moderator
Staff member
If you are going to be reloading content within the same page, my guess is you will need to use javascript. If you had different pages, you could accomplish it with css alone.
 
Top