Forum Moderators: open

Message Too Old, No Replies

How to Switch CSS files with Javascript

How to Switch CSS files with Javascript

         

jolene64

4:49 pm on Oct 1, 2007 (gmt 0)

10+ Year Member



I have two CSS files, one for font and background changes to use during the day and one to use during the night. I am trying to create a javascript file that will switch between these two CSS files when a button is pushed. Can someone please help me with the Javascript code? I have looked online and through many books but cannot find anything to help me. Thank you for your help

Trace

5:26 pm on Oct 1, 2007 (gmt 0)

10+ Year Member



Have a look at this thread:
[webmasterworld.com...]

I describe how to cycle through the different style sheets.

If you still need more help let me know.

jolene64

5:33 pm on Oct 1, 2007 (gmt 0)

10+ Year Member



okay, thank you. I will try it and tell you how it works out.