title: Css Html JavaScript - Navigation Highlight current selected Menu
body: <p>i think this question is very easy but I don't know if i am right. 
  I am an oldschoool html, php coder. 
  I want to use this kind of navigation:
  <a href="http://www.cssportal.com/horizontal-menus/13styles.htm" rel="nofollow noreferrer">http://www.cssportal.com/horizontal-menus/13styles.htm</a></p>
  
  <p>So far no problem. I got an dynamic php page and i want to use this Menu.
  There is no problem without this line in the HTML Part:</p>
  
  <pre><code>  &lt;li&gt;&lt;a href="" title="" class="current"&gt;&lt;span&gt;LINK&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>The Problem is the class. What is the smartest way to detect which link is now current? 
  I would do it in this way. I would write a php script like this pseudo code:</p>
  
  <pre><code>if acutaldocument == "link1.html" then echo "class='current' ";
  </code></pre>
  
  <p>But i think this is not the smartest way. Or am I right?
  Thanks</p>