js 闪烁的提示
作者:互联网
function changeColor(){
var color="#f00|bai#0f0|#00f|#880|#808|#088|green|blue|gray";
color=color.split("|");
var random_int = parseInt(Math.random()*color.length);
document.getElementById("blink1").style.color=color[random_int];
document.getElementById("blink2").style.color=color[random_int];
}
setInterval("changeColor()",800);
标签:style,提示,random,getElementById,js,color,int,var,闪烁 来源: https://www.cnblogs.com/simp/p/15235249.html