I'm trying to get a style switcher going for my site(forthe colour scheme) -
04-03-2009
, 12:17 PM
I'd like to give my users the choice of changing the colour scheme of my site
(http://chaoscoalition.net) at will, through css style changing buttons such as
the ones on the forum's theme(http://forum.chaoscoalition.net).
I've read many articles and tutorials on how to set up alternate stylesheets
for a webpage, but I can't quite get it right. Every time I seem to have gotten
it right, it either opens the php file that sets the cookie, or it opens the
stylesheet as text. I want to end up with something like the forum's theme
changing module, but for the homepage.
I have 5 different versions of the page made, all as different pages(php
format), but I don't understand how to link the buttons at the top to trigger
the stylesheet change, and I don't even knwo if it's possible to rely on a css
file to change the whole colour scheme of the page(which is image based).
It'd be great if someone could walk me through this, or offer some tutorial
that explains how to do this from scratch.
Thank you. |