The first I used was the About.com script.
My website is organized like this:
-splash page
--/home/
---default.htm
--/getinfo/
---default.htm
--/resources/
---styles.css *this is the default style sheet*
---stylesv.css *this is the "vintage" style sheet*
The bold text is the "resources" area, where the style sheets and images are located.
My code looked like this (in an abbreviated format here; the full code is too long and unnecessary):
<head> <link rel="stylesheet" type="text/css" href="<?php echo (!$style)?'../resources/styles':$style ?>.css" /> </head>
The PHP looked like this:
<?php
$Year =31536000 + time();
setcookie ('style', $choice, $year);
header("Location: $HTTP_REFERER");
?><a href="../resources/changestyle.php?choice=styles">Default Style</a> | <a href="changestyle.php?choice=stylesv">Vintage Style</a>
I tried both with "../resources/" and without that string in the code, and it made no difference.
Then I tried the A List Apart script, but with no luck on that either.
Currently, I am on my third method, but it isn't working either. I lost the link to it, however.
I think my code is formatted correctly, but I know it obviously isn't, because it isn't working. What am I doing wrong?
For reference:
My website (this one doesn't have the switching code) | My website with the testing switching code








Sign In »
Register Now!
Help


MultiQuote