It uses css but not on it's own. The css is changed depending on the page the user is on. The page will be the same page on the server but will appear different in the address bar. That could I posted would go onto any page that you wanted to have the 2 swapping options. You would then link them with
Code:
<a href="?styleid=158">Magenta</a>
<a href="?styleid=156">Blue</a>
You can put this before you start your html.
PHP Code:
<?php
if (isset($_GET['styleid'] {
$style_is = $_GET['styleid'];
?>
In your head put in this
PHP Code:
<?php
if ($style_is =="158") {
?>
<style type="text/css">
Any Styles You want for the magenta coloring this should only change color values so you dont redo the layout.
</style>
<?php
} else if ($style_is =="156") {
?>
<style type="text/css">
Any Styles You want for the blue coloring this should only change color values so you dont redo the layout.
</style><?php
} // if other styles put them below with additional ifs
} //this closes the if styleid is set
?>
In the body of your page whereve you want want the swaping options put in
PHP Code:
<a href="?styleid=158">Magenta</a>
<a href="?styleid=156">Blue</a>
You can change that value also to be 1 and 2 or whatever you want just change it everywhere. Post back if you got any more questions.
Bookmarks