I have tried several jQuery scripts to make my navigation have an active state of each button, when the user is on each page.
My navigation looks like this: http://jsfiddle.net/EWhS3/
or
<div id="wrapper">
<div id="header">
<img src="img/logo.png">
</div>
<!--header END-->
<div id="nav">
<ul>
<li><a href="index.php" class="select">Profil</a></li>
<li><a href="referencer.php" class="pushlinks" class="select">Referencer</a></li>
<li><a href="projekter.php" class="pushlinks" class="select">Projekter</a></li>
<li><a href="galleri.php" class="pushlinks" class="select">Galleri</a></li>
<li><a href="blog.php" class="pushlinks" class="select">Blog</a></li>
<li><a href="#" class="pushlogin" class="select">Login</a></li>
</ul>
</div>
<!--nav END-->
<div id="content">
</div>
</div>
I want that the hover effect, will stay active, when the user visits each page.
I really hope someone could give me an idea for this. I tried several things but didn't really could make it work :(
Thanks in advance ;)