You are here: another stumbling block « HTML « IT news, forums, messages
another stumbling block

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация