Save property to variable and append it to DOM element
<p>The code bellow does not work, obviously  objects can't be saved to variables in that manner!</p>

<pre><code>function styleElement(aNode){
    var cssProperty; var cssValue;
    for(var c=0; c&lt;2; c++){     
        cssProperty = c ? backgroundColor : color;
        cssValue = c ? 'blue' : '#fff';
        aNode.style.cssProperty = cssValue;
    }
</code></pre>

<p>Would somebody show me the right way?
10x and BR, Stephan</p>
