I have a style sheet what is dynamic. Here be the code for aforementioned style sheet (in a .css file):
<?
switch ($action)
{
default:
$link='ff9900';
break;
case 'link':
$link='9999cc';
break;
?>
a {text-decoration: none}
a:active {color: #<? echo "$link"; ?>}
a:visited {color: #<? echo "$link"; ?>}
a:link {color: #<? echo "$link"; ?>}
a:hover {color: #<? echo "$link"; ?>; text-decoration: underline}
And here's how I ~include~ it (big hint there[pfrt]):
<style>
<? include 'table.css' ?>
</style>
I get one of those parse errors after the last line, which give no real clue as to where it is, but methinks my SWITCH is a bit shite ...
_benjobee