No probs, quick tut...
Create some stylesheets for your site
stylesheet one has your default colour scheme
name this one eg: style.css (or whatever your stylesheet is called currently)
Code:
body {
background: white;
}
stylesheet two has your first alternate colour
name this eg: blue.css
Code:
body {
background: blue;
}
stylesheet three, second alternate colour
name this eg: green.css
Code:
body {
background: green;
}
download the styleswitcher.js javascript file from alistapart, and upload it to your site along with the style sheets
add the links to the head section of your html page
Code:
<head>
<link rel="stylesheet" type="text/css" href="style.css" title="default" />
<link rel="alternate stylesheet" type="text/css" href="blue.css" title="blue" />
<link rel="alternate stylesheet" type="text/css" href="green.css" title="green" />
<script type="text/javascript"
src="/styleswitcher.js"></script>
</head>
now you just need to add links into the body of your html for the styles
<a href="#"
onclick="setActiveStyleSheet('default');
return false;">White Background</a>
<a href="#"
onclick="setActiveStyleSheet('blue');
return false;">Blue background</a>
<a href="#"
onclick="setActiveStyleSheet('green');
return false;">Green background</a>
obviously, this is just a basic example of switching styles, you'll prob want to do more than just change the body background, but it gives you a start