You can use CSS to do this. Here is an example:
<!DOCTYPE html>
<html>
<head>
<title>Use CSS to color SVG output</title>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/MathML","output/SVG"],
extensions: ["mml2jax.js"]
});
</script>
<script type="text/javascript" src="../MathJax/MathJax.js"></script>
<style>
.colored .MathJax_SVG SVG > g,
.colored .MathJax_SVG_Display SVG > g {
fill: #F00;
stroke: #F00;
}
</style>
</head>
<body>
<div class="colored">
<math>
<mi>x</mi><mo>+</mo><mn>1</mn>
</math>
</div>
<div>
</div>
<math>
<mi>x</mi><mo>+</mo><mn>1</mn>
</math>
</div>
</body>
</html>
The first should be colored red and the second should be black (or
your default text color).
Davide
On Aug 20, 2012, at 1:09 PM, <
benjamin....@cengage.com> <
benjamin....@cengage.com