中文(简体)
<!-- 把下面代码加到<body>区域中 --> <textarea id="flashit"> 这里的内容会触发 </textarea> <form> <input type="submit" value="触发" id ="flashit"> </form> <script language="JavaScript1.2"> if (document.all&&document.all.flashit){ var flashelement=document.all.flashit if (flashelement.length==null) flashelement[0 ]=document.all.flashit 函数changecolor(which){ if (flashelement[which].style.color=='') flashelement[which].style.color="red" else flashelement[which].style.color= "" } if (flashelement.length==null) setInterval("changecolor(0)",1000) else for (i=0;i<flashelement.length;i++){ var tempvariable='setInterval("changecolor('+ i+')",'+'1000)' eval(tempvariable) } } </script>