QUOTE
You should really check out Brain Jar..
You know that's exactly what I want except without the menu, but for the user to change the themes.
Now I was also looking at his code and sort of came to the conclusion that is isn't all CSS though, because as was mentioned in the above postings that css can't change the img tag src, so I got to wondering how did he change the floating brain image according to the style chosen, I would assume it has something to do with the style variable defigned in the setscheme.asp file, now there is another story I wouldn't have aclue how to set the scheme using an external file, nor how to do it with asp, but I assume it could be done with php, so let's say I have a file that contians a bunch of information recarding what css to use and what image where:
CODE
//Default theme
$css = "default/default.css";
$bannerimage = "default/banner.gif";
//and so on a so forth
then in my site I would have a code that depending on the ?style= command it would include the above file at the top so:
CODE
if style="default"{
include default_theme.php;
}
//then you would have a bunch of other if's and what to do if there was no style defination
echo "<html><head><title>here it is!</title><link href="" . $css . "" rel="stylesheet" type="text/css" />";
and so on a so forth with the rest of the site, so when the style is style=defaule the default_theme.php is called which provides the file with the variables like $css
Do you think that might work, also how would I keep that style even through the rest of my pages?
Reply