Simple way is to call a varible to echo out a class on the selected menu or as i
do it too add a id to the body tag of the page and stle menu links by there own
class, there many ways of doing it.

check out the "monc" style on the menu i released on Xhtmlandcss.co.uk

http://xhtmlandcss.co.uk/index.php?p=9

Mark Harwood

Phunky.co.uk / Xhtmlandcss.co.uk / Zinkmedia.co.uk

On Sun, 28 Nov 2004 10:52 , Chris Kennon <[EMAIL PROTECTED]> sent:

>Hi,
>
>Thanks, but when testing locally with my php/mySQL server, a blank page 
>appears in the browser. What did I goof?
>
>
>$menu = 
>
>    Home
>    
>passed.">Archives
>    About
>    
>Matt">Photos
>    Music
>
>MENU;
>
>$lines = split("\n", $menu);
>foreach ($lines as $line) {
>    $current = false;
>    preg_match('/href="([^"]+)"/', $line, $url);
>    if (substr($_SERVER["REQUEST_URI"], 0, 5) == substr($url[1], 0, 5)) 
>{
>        $line = str_replace('
>        }
>    echo $line."\n";
>}
>?>
>
>
>On Sunday, November 28, 2004, at 10:00 AM, Rob Mientjes wrote:
>
>> Afraid you don't have to: http://photomatt.net/scripts/intellimenu
>>
>>
>> On Sun, 28 Nov 2004 09:55:15 -0800, Chris Kennon [EMAIL PROTECTED]> 
>> wrote:
>>> Hi,
>>>
>>> The goal is including the navigation  as a php include on each
>>> page, my question is how to control the "your here" selection, for 
>>> each
>>> page with possibly a php variable, coding an 
>>> dynamically based upon the page being viewed.
>>>
>>> _______________________________
>>> "Knowing is not enough, you must apply;
>>> willing is not enough, you must do."
>>>                                         ---Bruce Lee
>>>
>>> ******************************************************
>>> The discussion list for  http://webstandardsgroup.org/
>>>
>>>  See http://webstandardsgroup.org/mail/guidelines.cfm
>>>  for some hints on posting to the list & getting help
>>> ******************************************************
>>>
>>>
>>
>>
>> -- 
>> Cheers,
>> Rob.
>> » http://www.zooibaai.nl/b/
>> ******************************************************
>> The discussion list for  http://webstandardsgroup.org/
>>
>>  See http://webstandardsgroup.org/mail/guidelines.cfm
>>  for some hints on posting to the list & getting help
>> ******************************************************
>>
>>
>_______________________________
>"Knowing is not enough, you must apply;
>willing is not enough, you must do."
>                                       ---Bruce Lee
>
>The discussion list for  http://webstandardsgroup.org/
>
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
>




******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to