Showing results 1 to 2 of 2

Thread: How do I keep a clicked navigation button highlighted?

  1. #1

    Default 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. #2

    Default

    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
    https://www.google.com/search?client...UTF-8&oe=UTF-8
    the modern world:
    net helpmsg 4006

Tags for this Thread

Bookmarks

Posting Rules

  • You may post new threads
  • You may post replies
  • You may post attachments
  • You may not edit your posts
  •