if you do not want to do that you could also have separate style sheets just for the color difference, so you would include the appropriate body style according to some action item (url)
PHP Code:
__DOC_TYPE___
<html>
<head>
<?php
if($var == $val) { include_once("/css/body-green.css"); }
else if($var2 == $val2){ include_once("/css/body-blue.css"); }
else { include_once("/css/body-gray.css"); }
?>
<link type="text/css" rel="stylesheet" href="/css/styles.css" media="all">
<title>TITLE</title>
</head>
...
where the body-color css files contain
Code:
body {
background-color: #00ff00;
...
}
Bookmarks