Is it possible to loop through a set of colors with jquery?
<p>So far I have this:</p>

<pre><code>var colors = [ 'BlueViolet', 'CadetBlue', 'Coral', 'Crimson', 'DarkGoldenRod', 'DarkOliveGreen'],
    a = document.getElementById('colorthis').getElementsByTagName('a');

for(var i = 0; i &lt; li.length; i++) {
    var elem = a[i],
        color = colors[0];
    elem.style.color = color;
    colors.push(color);
    colors.shift();
}
</code></pre>

<p>Apprently this would work, but is there a way for me to apply this to the pseudo class of:</p>

<pre><code>a:active
a:visited
</code></pre>

<p>Is this something jquery's .each could do?</p>
