Welcome Guest, Not a member yet? Register   Sign In
CSS color scheme switching
#2

[eluser]obiron2[/eluser]
One of the big advantages of CSS is the Cascading of different styles.

If you are just going to set a bunch of variables and pass them through Ajax, you would do just as well to pup them into a javascript array and set the styles usind DOM notation in a clientside javascipt function. This way there is no requirement to go back to the server with an HTTP request, which would result in a delay between rendering the page and applying the styles.

Personally I would go for setting a CSS url in the header for the specific colour scheme as it gives you more future flexibility.

Let me know how you get on though, whichever method you choose, because I am going to be looking to do something similar.

Obiron


Messages In This Thread
CSS color scheme switching - by El Forum - 10-27-2007, 03:12 AM
CSS color scheme switching - by El Forum - 10-27-2007, 06:20 AM
CSS color scheme switching - by El Forum - 10-27-2007, 06:41 AM
CSS color scheme switching - by El Forum - 10-27-2007, 07:29 AM
CSS color scheme switching - by El Forum - 10-27-2007, 08:36 AM
CSS color scheme switching - by El Forum - 10-27-2007, 09:33 AM
CSS color scheme switching - by El Forum - 10-27-2007, 10:00 AM
CSS color scheme switching - by El Forum - 10-27-2007, 10:50 AM
CSS color scheme switching - by El Forum - 10-28-2007, 09:41 AM
CSS color scheme switching - by El Forum - 10-28-2007, 11:39 PM
CSS color scheme switching - by El Forum - 10-29-2007, 02:06 AM
CSS color scheme switching - by El Forum - 10-30-2007, 01:17 AM
CSS color scheme switching - by El Forum - 10-30-2007, 11:42 PM
CSS color scheme switching - by El Forum - 10-31-2007, 07:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB