<div id="shanshuo">闪烁的字</div>
<script>
function cgc(){
var color=['#f00','#f0f','#ff0','#00f','#ccc','#ddd','#eee'];
document.getElementsByClassName("shanshuo")[0].style.color[parseInt(Math.random()*color.length)];
}
setInterval("cgc()",200)
</script>