How can I have the active link highlighted when clicked but keep the home page link highlighted until another link is clicked?
I'm using PHP if that helps.
Here is my (x)HTML code.
<div id="nav">
<ul>
<li><a href="http://localhost/link-1/" class="active">Link 1</a></li>
<li><a href="http://localhost/link-2/">Link 2</a></li>
<li><a href="http://localhost/link-3/">Link 3</a></li>
<li><a href="http://localhost/link-4/">Link 4</a></li>
</ul>
</div>