OT: TECH: New Website Feature
From: | Henrik Theiling <theiling@...> |
Date: | Monday, July 17, 2006, 20:51 |
Hi!
Remi Villatel writes:
> Henrik Theiling wrote:
>
> > I don't know about your browser, but my browser's internal mechanism
> > switches back to the default in such a case. This is what I meant: I
> > would not know how to implement this persistence in plain HTML.
>
> That's easy and no so easy at the same time.
>
> The easy part: You just need to have 2 CSS files, one with funky
> colors and one only with black and white. The link to switch to B&W
> send you to a copy of the colorful page using the B&W CSS file.
>
> The hard part: You have to maintain 2 copies of your entire site and 2
> CSS files.
>...
HAHA! :-) Ok, *apart* from having two versions of the entire site, I
don't know how to program this. :-P
A server side script serving the CSS and doing the cookie stuff would
work, too, as Mark explained, but I agree that it is probably easier
to ignore paranoids like me and do it in JavaScript because it's just
easier.
**Henrik