Re: [WSG] PHP & CSS Your Here Effect

2004-11-28 Thread Chris Kennon
Hi,
This is another great solution. Could you assist with the following?
Hi,
I've encountered a resizing issue with my current site redesign:
working.ckimedia.com/index.php
with one user font-size + change the secondary(right) column slides off 
the plate. Suggestions please.


On Sunday, November 28, 2004, at 02:16 PM, Mark Harwood  wrote:
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
**

___
"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
**


Re: [WSG] PHP & CSS Your Here Effect

2004-11-28 Thread Mark Harwood
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
**



Re: [WSG] PHP & CSS Your Here Effect

2004-11-28 Thread Chris Kennon
Hi,
Thanks, but when testing locally with my php/mySQL server, a blank page 
appears in the browser. What did I goof?


$menu = <<

Home
Archives
About
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
**


Re: [WSG] PHP & CSS Your Here Effect

2004-11-28 Thread Rob Mientjes
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
**



[WSG] PHP & CSS Your Here Effect

2004-11-28 Thread Chris Kennon
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
**