another css help thread!

Associate
Joined
23 Jul 2004
Posts
1,994
Location
Dublin / Southend On Sea
ive recently designed my first ever css site and i want to allow the users to change the colours of the site.

is it possible to have links which once the user rollsover them, it loads a new stylesheet and thus changes the sites colours?

heres the site so far : http://www.fusedfaction.net/test.php

any comments on the site would be great too :) thanks
 
You could do it in PHP by setting the stylesheet as a PHP variable:

Code:
<link rel="stylesheet" type="text/css" href="<?php echo $stylesheet; ?>"/>

Then have a form to allow the user to change the stylesheet being used. You'd probably have to store the stylesheet variable as a php session so the browser would remember it but i've not done it before as i'm new to PHP :o
 
Back
Top Bottom