kalu singh rao

kalu singh rao

  • 290
  • 6.4k
  • 108.6k

Change color of selected menu

Aug 7 2014 11:57 PM
I have a menu bar that create in html and css. When first load my wbsite then home is selected active and when user click on other tab then change color of selected tab item.
 
 I have following code of html .
 
<div id="menu" >

<div class="home">
<a href="home.html">
Home
</a>
</div>

<div class="service">
<a href="service.html" target="_self">
Sales & Services
</a>
</div>

<div class="About">
<a href="about.html">
About Us
</a>
</div>

<div class="media">
<a href="media.html" target="_self">
Press
</a>
</div>

<div class="contact">
<a href="contact.php">
Contact Us
</a>
</div>

</div> 
 
 
How can  implement javascript code ?
 

Answers (4)