At 23:13 -0700 8/30/02, Brandon Oto wrote:
>Quote from a webdev friend, just now:
>"NS7 will show the customization on the
>customize page itself... but won't hold on to the cookie."
>This is on Mac OS X.
I see the same thing on OS9. It turns out to be a problem in the
styleswitcher script, not the CSS itself. I checked the cookie value
and NS7 is in fact remembering the cookie value correctly, so it's
just not applying it to pages. My hacked version of Snowden's
switcher script works without any trouble on meyerweb.com, so the
difference has to be the script. In my version of the script, I
commented out the last three lines:
// var cookie = readCookie("style");
// var title = cookie ? cookie : getPreferredStyleSheet();
That may be the difference. I remember discussing that part of the
script with some colleagues and they told me I needed to drop it.
I've forgotten the reason why, though; something to do with page
loading, I think.
Hopefully this won't drift too far off-topic, but at the moment I
think it's just enough on-topic (thanks to the popularity of
providing alternate stylesheets) to keep going. Let's just not get
Eric A. Meyer (http://www.meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
-- Martina Kosloff (http://www.mako4css.com/)