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
Post a Comment