<div class="codetitle"> <span><a style="CURSOR: pointer" data="81744" class="copybut" id="copybut81744" onclick="doCopy('code81744')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code81744"> <br><script type="text/javascript"> <br> function initArray(){ <br>this.length=initArray.arguments.length; <br>for(var i=0;i<this.length;i ){ <BR>this[i]=initArray. 인수[i ]; <BR>} <BR> var strA=""; <BR> function TimeList() <BR> { <BR> var str=new Array( "제로" ,"一","이","삼","사","五","鲁","아내","八","九") <BR> var str2=new Array( "一" , "둘", "셋", "넷", "다섯", "여섯", "일곱", "팔", "아홉", "열") <BR> var str3=new Array( "일요일", "월요일", "화요일", "수요일", "금요일", "토요일") <BR> var time=new Date() <BR> var year=new initArray(time .getFullYear ().toString().split("")[0],time.getFullYear().toString().split("")[1],time.getFullYear().toString().split(" ") [2], time.getFullYear().toString().split("")[3]); <BR> //var year=eval(time.getFullYear().toString()); <BR> var 월 <BR> if(time.getMonth().toString().length>1) <br> { <br> Month=new initArray(time.getMonth().toString().split("")[ 0] ,time.getMonth().toString().split("")[1]); <br> } <br> else <br> { <br> 월=new initArray(time.getMonth().toString () .split("")[0]) <br> } <br> <br> <br> <br> var len=year.length <br> for(i=0;i<4;i ) / /연도<BR> { <BR> var k=parseInt(연도[i]) <BR> <BR> strA =str[k] <BR> } <BR> strA = "연도"; > var j=0; <BR> var strB=""; <BR> if(month.length>1) <br> { <br> strB =str2[9] <br> strB =str2[parseInt(time) .getMonth ().toString().split("")[1])]; <br> } <br> else <br> { <br> strB =str2[parseInt(time.getMonth().toString() .split ("")[0])]; <br> } <br> strA =strB; <br> strA = 월"; <br> var strD=""; <br> if(time.getDate() . toString().length>1) <br> { <br> if(parseInt(time.getDate().toString().split("")[0])>1) <br> { <br> strD =str2[parseInt(time.getDate().toString().split("")[0])-1] <br> strD =str2[9] <br>if(parseInt(time.getDate( ) .toString().split("")[1])>0) <br> { <br> strD =str2[parseInt(time.getDate().toString().split("")[1] ) -1]; <br> } <br> else <br> { <br> strD ="" <br> } <br> } <br> else <br> { <br> if(parseInt(time. getDate ().toString().split("")[1])==0) <br> { <br> strD = "초기"; <br> strD =str2[9] <br> else <br> { <br> strD =str2[9]; <br> strD =str2[parseInt(time.getDate().toString().split("")[1])-1]; > } <br> <br> } <br> } <br> else <br> { <br> strD = "초기"; <br> strD =str2[parseInt(time.getDate().toString().split ( "")[0])-1]; <br> } <br> strA =strD; <br> strA = "; <br> <br> var sta=time.getDay(); <br> strA = str3[sta]; <br> document.getElementById("Text1").value=strA; <br> document.getElementById("TextBox1").innerText=strA; <br> document.all.Label1.innerText=strA; <br> document.form1.TextBox2.innerText=strA <br> <br> } <br></script></div>