Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help - Complex Site Menus (what a nightmare!)

    Hi guys,

    I have been looking for a solution for weeks but simply cannot find one. I have a page on my site with a rather complex menu. Right now it is all hard coded which is an absolute nightmare to update when needed. There are over 20 pages using the same menu so when I make a change I need to edit 20 pages.

    This is the page in question: http://www.forex4noobs.com/forex-education/

    You can see on the left hand side I have a long menu with several options. Some of those menu tabs have sub tabs (you can see this under ‘Green Belt’ ‘Common Indicators’). I need a fully functional menu that can:

    1. Have hover classes
    2. Show a selected tab as highlighted or different in some way from the unselected tabs.
    3. Have sub tabs that are hidden until the parent tab is clicked.

    I would use includes (and I do to an extent) however way too much CSS is involved in making the menu function with a single include. The main issue is showing a certain tab as selected requires a separate class name for each tab which just leads to bloated code. Therefore I cannot have a single .inc.php file.

    Is there any solution to this? I rather not use JS but if I do I would need it to degrade nicely.

    Thanks for the help.
    NickBe is offline Reply With Quote

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Start with fixing the errors in your markup, see http://validator.w3.org/check?uri=ht...Inline&group=0
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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