JavaScript 平滑文字闪烁 时间:2020-05-12 人气:0 <script language="JAVASCRIPT"> colors2 = new Array(6); colors2[0]="#fef4d9"; colors2[1]="#333300"; colors2[2]="#665500"; colors2[3]="#997700"; colors2[4]="#CC9900"; colors2[5]="#FFCC00"; var i=0; function fLi2() { line2.style.visibility = "visible"; if (i<6) { line2.style.color = colors2[i]; i++; timerID2 = setTimeout( "fLi2()", 60); } else { i=0; line2.style.visibility="hidden"; TimerID2=setTimeout("fLi2()",800); } } </script> JavaScript Planet [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 加载全部内容