> > Hmm, I beg to differ.  There is a nice way to handle this, using just CSS:
> >
> > http://www.456bereastreet.com/archive/200503/setting_the_current_menu_state_with_css/
>
> That's exactly the same as what I was saying. The identification of
> the current page is in the markup. It has to be scripted server-side
> or done by hand.
>
> Don't go stopping my heart with wild ideas like current-page-detection
> in CSS. You had me thinking my current world view was about to be
> turned upside down.

Again - and please refer to the class vs. ID thread some days ago:

http://archivist.incutio.com/viewlist/css-discuss/67500
http://archivist.incutio.com/viewlist/css-discuss/67513

This is a sexy idea and very much fun and all, but only using classes
and CSS to highlight the current page is NOT accessible. Users without
CSS need to know aswell what is the current page, which is why:

- The current page should not be linked at all - I replace the current
link with a strong
- The parent page of the current page should have an extra HTML
indicator that it is a parent page (adding a strong inside the link
makes sense).

Then you can also do the CSS highlighting, via

li strong {}
li a strong {}
li li strong {}

However, all of that has to happen server side. If you can use PHP and
domxml, take a look at http://onlinetools.org/tools/easynav/ which
does that for you.

As to answering the question: No, neither CSS nor JavaScript can keep
a state of a navigation without markup changes (in JavaScript you
could use a cookie to store the state or send it via the URL but that
is also not accessible as it does rely on either of them).

CSS is great to stye structured content, and is neither a JavaScript
nor a SSI replacement: http://www.wait-till-i.com/index.php?p=136

HTH
chris

--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to