Announcement

Collapse
No announcement yet.

How do I keep a clicked navigation button highlighted?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I keep a clicked navigation button highlighted?

    I have a row of buttons in my nav bar, all like this one:

    <a href="#"><div id="navButtonOverview" class="navbutton" onclick="overviewPane()" />Overview</div></a>

    How do I make the button stay a certain color after they click on it? (It is to emphasize the tab/page unity.)

    I thought it would be by:

    .navbutton:active { background-color: red;
    }

    ... but that doesn't change anything on button click. As part of the onclick innerHTML in the JavaScript, I added:

    + "<style type='text/css'>#navButtonOverview{ background-color: #93c2e9; }</style>"

    ... but the style did not change.

    What else should I try?

  • #2
    user has names on other forums like :
    Evan01, Darrel, Nolan1
    strange type of user /spammer/forum poster…
    some posts are real but useless, other posts are exact copy paste from another forum.

    Search Results | i3D.net - Community Forums
    the modern world:
    net helpmsg 4006

    Comment

    Working...
    X