Post Archive

› November 6, 2003

Gazingus

  • Reported by Nate

Wow what a relief. Dave has shared such usefullness that a new feeling of inner peace washeed over me after realizing that Gazingus is back. I, for one, have downloaded every publibly viewable file, just in case. It's good to have your work available again Dave.

The good news, is via Ubiquitous Z (his little known dj name), and comes with further good news that a new take on the XHTML list as DHTMLesk menu will arrive in the A List Apart of tomorrow.

Comments

1. November 7, 2003 12:31 PM

Quote this comment

Anne Posted…

FYI: A List Apart released their articles. I like the menu's, though I think the PHP article is just plain nonsense. Zeldman (or someone else) should ask a _real_ coder for that, who would do such things with arrays instead of this... Not everyone who read ALA is a designer.

2. November 7, 2003 02:15 PM

Quote this comment

huphtur Posted…

i use a similar php code, except i look at the path of the site, and use that to determine the 'you-are-here' indicator. I put this code on top of every index.php:

$path = str_replace("/index.php", "", $PHP_SELF);
list($site, $dir) = split("/", $path);

and in the navigation i do this:

<li><a href="/" <? if ($dir=="") print "class=\"active\""; ?>>home</a></li>
<li><a href="/news/" <? if ($dir=="news") print "class=\"active\""; ?>>news</a></li> etc

with this code, i can also create a deeper 'you-are-here':

$path = str_replace("/index.php", "", $PHP_SELF);
list($site, $dir, $deepdir, $evendeeperdir, $etc) = split("/", $path);

probably not the cleanest code, but it works perfect for me.