|
Posted by John Salerno on 09/27/62 11:39
This is similar to my question about how to change things when using a
PHP include. I'm using this markup for a navigation menu:
<div id="navlist">
<ul class="menu">
<li id="uberlink"><a href="#">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Links</a></li>
<li><a href="#">Page Four</a></li>
<li><a href="#">Page Five</a></li>
</ul>
</div>
To make the current page stay highlighted, you use the uberlink id. But
this seems to suggest that you must put this markup in each page
separately, and manually change the id each time (move it to Blog for
that page, to Links for that page, etc.).
I'd rather use a PHP include to insert this markup on each page, but how
would I do that and also be sure that the proper element gets the id?
Navigation:
[Reply to this message]
|