Click to See Complete Forum and Search --> : Changing the attached CSS sheet depending on what colour the visitor wants to see in


unregistered
02-09-2005, 01:47 AM
Hey. I want my visitors to be able to change the colour of the site by clicking on little icons. I have 5 colours that I would like and each are in their own css. Can i make it so when they click on the colour it loads that colours css (without having to reload the page) and also when they go to another page so that the colour doesnt reset, it stays to the colour that they chose... TIA.

scragar
02-09-2005, 05:03 AM
you need to either use Javascript and/or a server-side lang.
javascript will only work with 9 in 10 users so thats risky and you said that you didn't want to relode the page so the serverside is unprefered..

ray326
02-09-2005, 07:57 AM
Check http://alistapart.com for some articles on that.

mikepurvis
02-09-2005, 08:14 AM
Given your requirements, it will need to be javascript + cookie, as described here: http://www.alistapart.com/articles/alternate/