Zach Skagen
New member
For example, my nav bar is location at navbar/nav.inc, and is being included in the main document using <? readfile("navbar/nav.inc"); ?>..... nav.inc consists of
<li><a href="javascript:index()" class="topNavAct">Home</a></li>
<li><a href="javascript:sources()">Bibliography</a></li>
<li><a href="#" class="topNavLast">$Null</a></li>
If you see the class="topNavAct", that specifies the current page, and show the page in the nav bar as a different style. Is there a php script or javascript that will add the: class="topNavAct" based on words in the url, for instance index.
thank you!
<li><a href="javascript:index()" class="topNavAct">Home</a></li>
<li><a href="javascript:sources()">Bibliography</a></li>
<li><a href="#" class="topNavLast">$Null</a></li>
If you see the class="topNavAct", that specifies the current page, and show the page in the nav bar as a different style. Is there a php script or javascript that will add the: class="topNavAct" based on words in the url, for instance index.
thank you!