</body> 위에 넣는다 |
<script language="JavaScript1.2">
var flashcolor="skyblue" // 글자의 색상을 설정하세요 var flashinterval=1000 // 플래시 속도를 설정 하세요. 1000=1초
var formcollect=document.getElementsByTagName? document.getElementsByTagName("FORM") : document.all? document.all.tags("FORM") : new Array() var flashcollect=new Array()
for (i=0; i<formcollect.length; i++){ for (e=0; e<formcollect[i].elements.length; e++){ if (formcollect[i].elements[e].className=="flashit") flashcollect[flashcollect.length]=formcollect[i].elements[e] } }
function flashelements(){ for (f=0; f<flashcollect.length; f++){ if (flashcollect[f].style.color=='') flashcollect[f].style.color=flashcolor else flashcollect[f].style.color="" } }
if (flashcollect.length>0) setInterval("flashelements()",flashinterval)
< /script> |
<body>와 </body>사이에 넣어주세여 |
<textarea name="textarea1" rows="" cols="" class="flashit"> 쓰고싶은말 </textarea>
<input type=button value="쓰고싶은말" class="flashit"></form> |
|