What I want to do is to have a function that executes to define a "current" class to an <li>
tag, depending on the page name. For example, if the page is named index.php, I want the function to determine if the link within the <li>
tag is the same name as the page (index.php). I'm sorry I'm not the best at explaining this. Here's an example code.
<ul id="navigation"><li><a href="index.php"></li></ul>.
I want the class "current" defined into the <li>
tag if the link is the same as the page name. Is there any way to do this? Or am I on a futile mission?