php - How to Make Menu Active -


i have menu follows

<ul>     <li><a href="index.php">home</a></li> </ul> 

how make active when visit page. tried follows no luck

#navigation a:active {     color: #000;     background: -webkit-gradient(linear, left top, left bottom, from(#dfe7fa), to(#fff));     border-bottom-width:0px; } 

i'm new webie suggestions

add id code below

update

<div id="menu">   <ul>     <li id="myhome"><a href="index.php">home</a></li>   </ul> </div> 

write script below

<script>   window.onload = menuselect('myhome'); </script> 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -