You are here: Re: Will a suggestion in this article about PHP put browsers into quirks mode? « HTML « IT news, forums, messages
Re: Will a suggestion in this article about PHP put browsers into quirks mode?

Posted by Adrienne Boswell on 03/31/07 07:17

Gazing into my crystal ball I observed dorayme
<doraymeRidThis@optusnet.com.au> writing in
news:doraymeRidThis-1B9190.09592031032007@news-vip.optusnet.com.au:

> In article
><0001HW.C2334F60000FF348B019F94F@News.Individual.Net>,
> patrick j <usemywebsite@googlemail.com> wrote:
>
>> Very cool is the fact that with some jiggerypokery with a variable I
>> can have the included navigation identify the "current" link.
>
>> This is all described rather well in this article here:
>
>> <http://alistapart.com/articles/keepingcurrent/>
>
>
> So! A way to get rid of all the hand inserted class="current"s.
> Excellent.
>

Yes, dear, and you can even make an array/function to do it. Just make
your array contain the page names and links, then while loop through
send the info to the function to see if $thispage is the current page,
and add your class. Easy peasy!

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

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

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