Sent by Bryan Loeper on 16 August 2004 04:04
1) Keep the color and the fonts in seperate sheets. Then, this is
what you do. Have some sort of consistent naming scheme for your
color style sheets, for example: css/color/red.css.
2) Link the default color so it loads on startup, or at least load a
blank one. (none.css)
3) Use DOM and Javascript to turn the current color sheet off.
Change the value of the stylesheet (set it to css/color/[color].css).
Turn the color style sheet back on.
-bryan-
On Mon, 16 Aug 2004 11:37:31 +0900, Richard Hawking [EMAIL-REMOVED]> wrote:
> Hello all.
>
> I have been using the http://www.alistapart.com/articles/alternate/
> method of loading alternative stylesheets to change the text size
> with no problem. However, now I would like to give users the option
> of slecting different colour schemes too.
>
> I had a rough n'ready attempt at it, proving an alternative
> styelsheet with different colors. All worked well until I used the
> change text size switchers within the new colour scheme - the text
> changed OK, but I ended up with the original colour scheme.
>
> I guess there must be a way around this....???
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> 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/
>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/