PDA

View Full Version : Changing skin/theme question


2bz2p
06-27-2008, 04:01 PM
Hi,

I have seen on website where you can change the color of the layouts and I am assuming its nothing more than changing the attached css file.

My question is how do you go about creating the link to change that or do you have to create another index.php file.

Thanks
2b

davidj
06-27-2008, 04:06 PM
i know your using PHP so you could assign a different CSS to a var or even an array and dynamically change each one from a link or button or dropdown

2bz2p
06-27-2008, 04:10 PM
Lol I went outside and smoke a ciggarette and that dawned on my lol, though it would be a switch or if statement in the head tag right?

davidj
06-27-2008, 04:13 PM
could do it that way but i would write a function above the html and call it in the place of the current CSS

2bz2p
06-27-2008, 04:23 PM
Yeah that makes more sense.