css-styleswitcher css-styleswitcher
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

css-styleswitcher

Started by stwief, July 27, 2005, 08:32:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stwief

I'm integrating Coppermine in an existing website, and in this site I used a css styleswitcher. In a cookie, i store one variable: "$colour". This is also the name of the different css-files. In total, I have 6 different stylesheets (only the colours vary), and it's no problem to adjust these css-files so that they work for the entire site, included coppermine.
But I do have another problem: how can I tell coppermine which css file it should use?
In template.html, I can adjust the css, but I can't work with php code to switch to different stylesheets offcourse..

anybody has an idea?

thanks!