I am using the jquery lavalamp plugin for a piece of navigation, and the plugin requires that <li> for the active page must have a class of "current"… and that is what makes it highlight the appropriate page. Thats all fine and dandy…
My problem is that for my navigation, I have one php file with all my navigation that the rest of my pages link to using php insert. So just setting one <li> as current would highlight only one navigation option throughout all the pages.
What im wondering is if theres a way to have a php statement that says that "if the body id="blabla", then put "current" in li class. If not then dont do anything."
This way, for example, on the home page it will see that my body id = "home" and then insert the "current" class into the <li> tag for the home link, and that one will be highlighted on the home page. And when the body id ="about", it will highlight the about link…. etc.
Thanks so much… any help will be greatly appreciated. At least if someone can tell me if this is even possible or not.