闪烁的文字

<div id="blink" style="color:blue;">闪烁的文字</div>
<script language="javascript">
function changeColor() {
var color = "#fff|red|yellow|blue|black|#ff6768";
color = color.split("|");
document.getElementById("blink").style.color = color[parseInt(Math.random() * color.length)];
}
setInterval("changeColor()", 200);
</script>

原文地址:https://www.cnblogs.com/liucaixia/p/11038857.html