CSS hover state with php include
Posted on 2007-03-27
I am just doing a simple website in PHP where the top menu is based on CSS and its being included to every page with <?php include "top-menu.php"; ?>
I want the top menu CSS will show the hover state in its link. For example if one of the menu links is "about us" and the user view the "about us" page then the menu will show the links hover state in the menu.
I know of course how to do it in CSS but I do not know how to "tell" the menu to hover on a link according to the viewed page.
Can somebody direct me?