Форумы / Cotonti / Skins / CSS Menu Current

Twiebie
#26113 15.09.2010 23:16
I've got a little problem with my CSS menu.

I'd like to have the link that is active highlighted, for example when somebody is on the Forums page, the Forum link is highlighted.

My html at the moment:

<div class="cssmenu">
<ul id="cssmenu">
<li><a href="index.php">Home</a></li>
<li><a href="plug.php?e=contactus">Contact</a></li>
<li><a href="page.php?id=4">Roster</a></li>
<li><a href="forums.php">Forums</a></li>
<li><a href="page.php?id=5">Gameserver</a></li>
<li><a href="list.php?c=files">Files</a></li>
<li><a href="plug.php?e=search">Search</a></li>
<li><a href="page.php?id=39">Chat</a></li>
<li><a href="page.php?id=44">Recruitment</a></li>
<li><a href="http://www.dev-enter.net/stats/" target="_blank">Stats</a></li>
</ul>
</div>

I was thinking using for example:
<li><a href="index.php" id="current">Home</a></li>

It does highlight the button, but it will keep it highlighted on different pages aswell, probably because the menu is not in seperate files, but all in the header.tpl.

Any ideas how to fix this?