You are here: Re: Menu « HTML « IT news, forums, messages
Re: Menu

Posted by Els on 06/07/05 14:48

Luigi Donatello Asero wrote:

> "Michael Winter" <m.winter@blueyonder.co.invalid> skrev i meddelandet
> news:fB3pe.46433$G8.16233@text.news.blueyonder.co.uk...
>> On 06/06/2005 22:28, Luigi Donatello Asero wrote:
>>
>>> "Oli Filth" <catch@olifilth.co.uk> skrev i meddelandet
>>> news:3RYoe.1927$ls3.713@newsfe1-win.ntli.net...
>>
>> [snip]
>>
>>>> Use the same <?php include "menu.html"; ?> line in every page.
>
> This sounds interesting but it seems to have some disadvantages:
>
> 1) How could I include different menus this way?
> I would need at least a different menu for each language.

Aren't your files divided into different language folders? Well, have
a menu.html in each language folder, and make the path relative.

> 2) How do I evidentiate the button which is referred to the link of the page
> in question? That should change for every page!

<a <? if ($PHP_SELF=="/index.html") {print
('class="current"');}else{print ('href="/"');} ?>>home</a>

I'm sure this can be done in a more elegant fashion, but it works.
(if anyone can tell me /how/ it can be done more elegant for a list of
links, please do tell :-) )

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Jonathan Richman - Roadrunner

 

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

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