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 .
How can implement javascript code ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
shailesh parmarPosted Jan 22, 2015, 1:43 AM
i have some code you can used it will be work ok
first you can add this code in your style.css or you used .css file
body#home a#homenav,
body#aboutus a#aboutusnav,
body#products a#productsnav,
body#services a#servicesnav,
body#contactus a#contactusnav {
color: #68a4c4;
background: #fff;
}
and then you can write this html code for every html page in your site
and then last this is navebar and menu code for _layout page
kalu singh raoPosted Aug 8, 2014, 2:12 AM
Sanjay KumarPosted Aug 8, 2014, 1:28 AM
jquery menu bar
http://cssmenumaker.com/menu/cherry-responsive-menu
http://www.c-sharpcorner.com/UploadFile/47548d/master-pages-in-Asp-Net/
Dipankar BiswasPosted Aug 8, 2014, 1:19 AM
your best tutorial....
HTML
http://www.w3schools.com/html/
CSS
http://www.w3schools.com/css/default.asp
JAVASCRIPT
http://www.w3schools.com/js/default.asp