|
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]
|