¹Ì¸®º¸±â´Â À§ÀÇ ¸µÅ©¸¦ Ŭ¸¯Çϼ¼¿ä.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>´Þ·Â ½ºÅ©¸³Æ®</title>
<meta name="generator" content="Microsoft FrontPage 4.0">
<style>
td {text-decoration:none; }
font {text-decoration:none; line-height:130%;}
A:link,A:active,A:visited{text-decoration:none;color:'#333333';}
A:hover {text-decoration:none; color:'ff9900'}
</style>
<link rel="STYLESHEET" type="text/css" href="board_style.css">
<SCRIPT LANGUAGE="JavaScript">
<!--
var monthName=new Array("1¿ù","2¿ù","3¿ù","4¿ù","5¿ù","6¿ù","7¿ù",
"8¿ù","9¿ù","10¿ù","11¿ù","12¿ù")
var monthDays=new Array(31,28,31,30,31,30,31,31,30,31,30,31)
var now=new Date
var nowd=now.getDate()
var nowm=now.getMonth()
var nowy=now.getYear()
function showCalendar(day,month,year)
{
if ((year%4==0||year%100==0)&&(year%400==0)) monthDays[1]=29; else monthDays[1]=28 //leap year test
var firstDay=new Date(year,month,1).getDay()
var calStr="<table border=0 cellpadding=5 cellspacing=1 align=center bgcolor=#CCCCCC>"
calStr+="<tr bgcolor=white><td colspan=7>"
calStr+="<table border=0 cellpadding=0 cellspacing=0 align=center width=100%>"
calStr+="<td><font size='2'><a href='javascript:;' onClick='nowm--; if (nowm<0) { nowy--; nowm=11; } showCalendar(nowd,nowm,nowy)' title='ÀÌÀü ¿ù'> ¢¸</a></font></td>"
calStr+="<td align=center><font size='2'>"+monthName[month].toUpperCase()+" "+year+"³â</font></td>"
calStr+="<td align=right><font size='2'><a href='javascript:;' onClick='nowm++; if (nowm>11) { nowy++; nowm=0; } showCalendar(nowd,nowm,nowy)' title='´ÙÀ½ ¿ù'> ¢º</a></font></td>"
calStr+="</tr></table>"
calStr+="</td></tr>"
calStr+="<tr align=center bgcolor='#3100ce'>"
calStr+="<th><font color='red' size='2'>ÀÏ</font></th>"
calStr+="<th><font color='white' size='2'>¿ù</font></th>"
calStr+="<th><font color='white' size='2'>È</font></th>"
calStr+="<th><font color='white' size='2'>¼ö</font></th>"
calStr+="<th><font color='white' size='2'>¸ñ</font></th>"
calStr+="<th><font color='white' size='2'>±Ý</font></th>"
calStr+="<th><font color='#66CCFF' size='2'>Åä</font></th>"
calStr+="</tr>"
var dayCount=1
calStr+="<tr bgcolor=white>"
for (var i=0;i<firstDay;i++) calStr+="<td> " //°ø¹é
for (var i=0;i<monthDays[month];i++)
{
if(dayCount==nowd) {
calStr+="<td align=center bgcolor='DDDDDD'><font size='2'><b>" // ¿À´Ã ³¯Â¥À϶§ ¹è°æ»ö ÁöÁ¤,±ÛÀÚ ÁøÇÏ°Ô
} else {
calStr+="<td align=center><font size='2'>" // ¿À´Ã ³¯Â¥°¡ ¾Æ´Ò¶§ ¹è°æ»ö ÁöÁ¤
}
calStr+="<a href='http://www.tagkorea.pe.kr'>" // ¸µÅ©¼³Á¤
calStr+=dayCount++ // ³¯Â¥
calStr+="</a>"
if(dayCount==nowd) {
calStr+="</b>" // ¿À´Ã ³¯Â¥À϶§ ±ÛÀÚ ÁøÇÏ°Ô
} else {
calStr+="" // ¿À´Ã ³¯Â¥°¡ ±ÛÀÚ ÁøÇÏ°Ô ¾ÈÇÔ
}
calStr+="</font>"
if ((i+firstDay+1)%7==0&&(dayCount<monthDays[month]+1)) calStr+="<tr bgcolor=white>"
}
var totCells=firstDay+monthDays[month]
for (var i=0;i<(totCells>28?(totCells>35?42:35):28)-totCells;i++) calStr+="<td> "
calStr+="</table><BR>"
calendar.innerHTML=calStr
}
//-->
</SCRIPT>
</head>
<body>
<SPAN ID=calendar STYLE="position:relative;"></SPAN>
<script language="JavaScript" type="text/JavaScript">
showCalendar(nowd,nowm,nowy);
</script>
</body>
</html>
|