How do I modify a CSS stylesheet using javascript (NOT how to I change an element's stylesheet)
<p>I am trying to modify a CSS stylesheet by setting its cssText attribute but it isn't sticking.</p>

<p><a href="http://www.tupari.net/jstest/index.xhtml" rel="nofollow">Test Page</a></p>

<p>Pushing the button should toggle its appearance from a red arrow to a black arrow and black but nothing changes.  This appears in the javascript log:</p>

<pre>
changed cssText from .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); } to .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); } should be .movebutton button { width: 100px; height: 100px; background-image: url("blackarrow.svg"); }

changed cssText from .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); } to .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); } should be .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); }

changed cssText from .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); } to .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); } should be .movebutton button { width: 100px; height: 100px; background-image: url("blackarrow.svg"); }

changed cssText from .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); } to .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); } should be .movebutton button { width: 100px; height: 100px; background-image: url("redarrow.svg"); }
</pre>

<p>So basically it seems as if the change is not sticking.  This is in Firefox 7.0.1.</p>
