[WSG] PHP CSS Your Here Effect
Hi, The goal is including the navigation ul 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 a href=# id=current 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 **
Re: [WSG] PHP CSS Your Here Effect
Hi, Thanks, but when testing locally with my php/mySQL server, a blank page appears in the browser. What did I goof? div id=nav ?php $menu = MENU ul id=navList lia href=/ title=Where the heart isHome/a/li lia href=/archives/ title=Things that have passed.Archives/a/li lia href=/about/ title=All about MattAbout/a/li lia href=/photos/ title=It's the 'photo' in MattPhotos/a/li lia href=/music/ title=The food of loveMusic/a/li /ul 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('a h', 'a id=current h', $line); } echo $line.\n; } ? /div 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 ul 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 a href=# id=current 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
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 MattPhotos 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
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 WebMail 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 MattPhotos 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 **