Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Help with menu

  1. #1
    New to the CF scene
    Join Date
    May 2006
    Thanked 0 Times in 0 Posts

    Help with menu

    Hi All

    Please be patient with me, im very new to javascripting.

    I have been working on a navigational menu from some tutorial I have found online.

    It works as it should except Im wanting the current page menu button to be shown when selected and not sure how to go about it.

    So when visitor arrives at index.html, the menu button is in the active state, so 'Home' should be blue like on hover.

    I want the same for all other pages, to be blue when selected.

    I have demo online at http://www.vodev.co.uk/menutest/

    There is also a zip file containing all what is online at http://www.vodev.co.uk/menutest/menutest.zip (11kb) which includes all pages, css and js files.

    Any help, advice would be apreciated

    Thanks in advance

  • #2
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Thanked 508 Times in 502 Posts

    Lightbulb Try this ...

    Assuming you have a separate page for each main menu heading, try:
    PHP Code:
    <li style="background-color:#ccccff; border-left: 1px solid #202020;">
    a href="index.html">Home</a></li
    Alter the color selection to meet your needs.
    The change should override the 'menu.css' setting for this element only.


    Posting Permissions

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