Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Change color of selected menu
kalu singh rao
Aug 7 2014 11:57 PM
852
Reply
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 ?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Encrypt and decrypt
validate minmum and maximum salaries