NickBe
12-23-2009, 04:36 AM
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
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