Trouble with CSS Menu - shared html page

liunx

Guest
I'm using a css menu with 6 main tabs, and various sub pages under each tab.
each page has a class in the body tag like this - <body class="tab1"....> - so that the tab in which the page was found is highlighted
The problem I'm having is that I have a sub page that is found under TWO different main tabs
Is there a way I can add some sort of if else statement of sorts to let the page know which main tab the user came from??

thanks in advance for any and all help

PIn case anyone encounters the same problem, here's my solution:

I set a parameter on the actual href coming from the menu tab2 - "blahblah.html?main_tab=tab2"

then I added the following to the page itself
<body class="<%= request.getParameter("main_tab") == null ? "tab1" : "tab2" %>"

now when blahblah.html is accessed from tab1, or tab2, the menu displays correctly
 
Back
Top