Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-23-2009, 04:36 AM #1
- Join Date
- Dec 2009
- Thanked 0 Times in 0 Posts
Help - Complex Site Menus (what a nightmare!)
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
12-23-2009, 07:13 AM #2
- Join Date
- Mar 2007
- Thanked 2,223 Times in 2,210 Posts
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)