<div class="codetitle"> <span><a style="CURSOR: pointer" data="121" class="copybut" id="copybut121" onclick="doCopy('code121')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code121"> <br><!DOCTYPE HTML PUBLIC "-//W3C/ /DTD HTML 4.01 Transitional//EN" <BR>"http://www.w3.org/TR/html4/loose.dtd"> <br><html> <br><head> <br> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <br><title>롤 이름</title><br><script 언어="javascript" 유형 ="text /javascript"> <br>var status = 1; <br>var name = new Array('Fan Peng','Zhang Zihan','Dai Tianming','Sun Ji','Sun Lei', 'Wang Honggang', 'Zeng Fanding', 'Li Huan', 'Zhu Ying', 'Wang Sha', 'Zheng Linlin', 'Zhu Zhenjia', 'Jin Yi', 'Li Chenglong', 'Gou Chao', 'Wu Tong', 'Liang Liang', 'Liu Jun'); <br><br>function getname(){ <br>return name[Math.floor(Math.random()*name.length)]; 🎜>} <br>function showname() { <br>document.getElementById("name").innerHTML = getname(); <br>setTimeout("showname",200) <br>} <br>function goname (){ <br>intimer = setInterval( showname, 200); <br>} <br>function stopname(){ <br>if(status == 1){ <br>clearInterval(intimer) <br>status = 0; <br>}else{ <br>intimer = setInterval(showname, 200) <br>status = 1 <br>} <br>} <br></script> ; <br>#이름{ <br> 테두리:1px <br>여백:자동; <br>색상:#000000 <br>height:1em; <br>커서: 포인터 <br>text-align:center; <br></style> <br><body onLoad=" goname()"> <br>< ;div id="name" onClick="stopname()"></div> <br></body> <br></html> <br> <br> </div>