
Originally Posted by
gragland I'm working on a tabbed nav system. It wasn't that hard to implement. I have it so that at the top of each page it sets the body id (<body id="topstories">), and then the correct tab stays in focus. The one problem I'm having is that when someone does a search from the search bar the "frontpage" tab stays in focus because the search is happening from index.php (which has <body id="frontpage"> at the top. What I want is to have the "search" tab come into focus when someone does a search.
So, right now I'm trying to get this script working that I found online, which will highlight the correct tab depending on whats in the address bar. So hopefully that will work. But if anyone knows how I could make it change the bodyid to "search" when someone performs a search then that would be easier.