<div class="codetitle"> <span><a style="CURSOR: pointer" data="512" class="copybut" id="copybut512" onclick="doCopy('code512')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code512"> <br><script 언어="JavaScript"> <br><!-- <BR>var bsYear; <BR>var bsDate <BR>var arrLen=8; //배열 길이<BR>var sValue=0; //연도의 초 수<BR>var dayiy=0; //연도의 일<BR>var miy=0; 월<BR>var iyear=0; //연도 표시<BR>var dayim=0; //월요일<BR>var spd=86400; //일당 초<BR><br>var year1999=" 30;29; 29;30;29;29;30;29;30;30;30;29"; //354 <br>var year2000="30;30;29;29;30;29;29;30 ;29;30 ;30;29"; //354 <BR>var year2001="30;30;29;30;29;30;29;29;30;29;30;29;30"; //384 <BR>var year2002="30;30;29;30;29;30;29;29;30;29;30;29"; //354 <BR>var year2003="30;30;29;30; 30;29; 30;29;29;30;29;30"; //355 <BR>var year2004="29;30;29;30;30;29;30;29;30;29;30;29 ;30"; //384 <BR>var year2005="29;30;29;30;29;30;30;29;30;29;30;29"; //354 <BR>var year2006="30 ;29;30 ;29;30;30;29;29;30;30;29;29;30"; <BR><br>var Month1999="첫 번째 달, 4월; 월; 10월; 12월; 4월; 10월; var Month2004="첫 번째 달; 2월; 도약 2월; 3월; 4월; 5월; 6월; 7월; 8월;9월;10월;11월;12월" <br>var Month2006="첫 번째 달;2월;3월;4월;5월; 6월;7월;도약 7월;8월;11월; 12월" <BR>var Dn="음력 2월 3일; 음력 4일, 음력 6일, 음력 10일; 음력 11, 16, 24; -7 ; 29; <BR><BR>var Ys=new Array(arrLen); <BR>Ys[0]=919094400;Ys[1]=949680000;Ys[2] =980265600; <br>Ys[3]=1013443200;Ys[4]=1044028800;Ys[5]=1074700800; <br>Ys[6]=1107878400;Ys[7]=1138464000; var Yn= new Array(arrLen); //음력의 이름<BR>Yn[0]="Jimao Year";Yn[1]="Genchen Year";Yn[2]="Xinsi Year"; <BR>Yn[3]="인우년";Yn[4]="귀위년";Yn[5]="가심년"; <BR>Yn[6]="이유년";Yn[7 ] ="Bingxu 연도"; <br>var D=new Date(); <br>var yy=D.getYear() <BR>var mm=D.getMonth() 1; getDate(); <BR>var ww=D.getDay(); <BR>if (ww==0) ww="<font color=RED>Sunday" <br>if (ww==1) ww ="월요일"; <br>if (ww==2) ww="화요일"; <br>if (ww==3) ww="수요일" <br>if (ww==4) ww =" 목요일"; <br>if (ww==5) ww="금요일"; <br>if (ww==6) ww="<font color=RED>Saturday"; <br>ww=ww ; <br>var ss=parseInt(D.getTime() / 1000) <br>if (yy<100) yy="19" yy; <BR><BR>for (I=0;I<arrLen; I ) <BR> if (ss>=Ys[I])...{ <br> iyear=I; <br> sValue=ss-Ys[I] //현재 연도의 초 수<br> } <br>dayiy=parseInt(sValue/spd) 1; //현재 연도의 일수<br><br>var dpm=year1999 <br>if (iyear==1) dpm=year2000; >if (iyear==2 ) dpm=2001년; <br>if (iyear==3) dpm=2002년 <br>if (iyear==4) dpm=2003년 <br>if (iyear==5) dpm=year2004; <br> if (iyear==6) dpm=year2005; <br>if (iyear==7) dpm=year2006; <br>dpm=dpm.split(";"); 🎜>var Mn=month1999 <br>if (iyear==2) Mn=month2001; <br>if (iyear==5) Mn=month2004 <br>if (iyear==7) Mn=month2006; 🎜>Mn=Mn.split (";"); <br><br>var Dn="음력 1일, 음력 2일, 음력 3일, 4일 음력 5월 6일, 음력 8일, 음력 11월 13일. 14; 18; 21; 27; 30"; <br>Dn=Dn.split(";"); <br><br>dayim=dayiy; <br><br>var total=new Array(13); <br>총계 [0]= parseInt(dpm[0]); <br>for (I=1;I<dpm.length-1;I ) total[I]=parseInt(dpm[I]) total[I-1] <BR> (I=dpm.length-1;I>0;I--) <br> if (dayim>total[I-1])...{ <br> dayim=dayim-total[I- 1] <BR> miy=I <br> }<BR>bsWeek=ww; <BR>bsDate=yy "년" mm "월"; <BR>bsDate2=dd; <BR>bsYear="农历" Yn[iyear]; <BR>bsYear2=Mn[miy] Dn[dayim-1]; <BR>if (ss>=Ys[7]||ss<Ys[0]) bsYear=Yn[7]; <BR>함수 CAL()...{ <BR>document.write("<table border='1' cellspacing='3' width='90' bordercolor='#000000' bgcolor='#FFFFFF' 높이 ='110' cellpadding='2'"); <BR>document.write("<tr><td align='center'><b><font color=#008040>" bsDate "</font><br><font face ='Arial' size='6' color=#FF8040>" bsDate2 "</font><br><font color=#008040><span style='FONT-SIZE: 10.5pt'>" ); <br>document.write(bsWeek "</span><br>" "<br></b><font color=#9B4E00>"); <br>document.write(bsYear "<br>" bsYear2 "</td></tr></table>"); <br>} <br>//--> <br></script> <br> <script 언어="javascript">CAL();</script><br> </div>