var oPopup = document.createElement('div');
document.body.appendChild(oPopup);
var oPopBody = oPopup.document.body;
var strCalendar;
var cleft;
var ctop;
if(dom) {
strCalendar = "";
strCalendar += "<style type='text/css'>";
strCalendar += "td {font-size:12px; font-family:±¼¸²; text-decoration:none; }";
strCalendar += "A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}";
strCalendar += "A:hover {text-decoration:none; color:ff9900}";
strCalendar += "font { font-size: 9pt; }";
strCalendar += ".cnj_close {font-size:8pt;color:#000000; background-color:#EFEFEF; border-width:1; border-color:#808080; border-style:solid;cursor:hand;font-weight:bold;height:16px;width:16px;text-align:center;vertical-align:bottom}";
strCalendar += ".cnj_close2 {font-size:8pt;color:#000000; background-color:#EFEFEF; border-width:1; border-color:#808080; border-style:solid;cursor:hand;font-weight:bold;height:16px;width:16px;text-align:center;vertical-align:bottom}";
strCalendar += ".cnj_input {background-color:rgb(240,240,240);border-width:1pt; height:16pt;cursor:hand;}";
strCalendar += ".cnj_input2 {font-size:8pt;color:#808080; background-color:#EFEFEF; border-width:1; border-color:#808080; border-style:solid;cursor:hand;height:16px;}";
strCalendar += ".cnj_input3 {font-size:8pt;color:#000000; background-color:#FFFFFF; border-width:1; border-color:#C00000; border-style:solid;cursor:hand;height:16px;}";
strCalendar += ".cnj_input4 {font-size:8pt;color:#C00000; background-color:#FFFFFF; border-width:1; border-color:#808080; border-style:solid;cursor:hand;height:16px;}";
strCalendar += ".cnj_td {border-width:1;border-style:solid;border-color:#a0a0a0;}";
strCalendar += "</style>";
strCalendar += "";
strCalendar += " ";
strCalendar += " ";
strCalendar += " ";
strCalendar += " ";
strCalendar += " | ";
strCalendar += " ";
strCalendar += " ";
strCalendar += " | ";
strCalendar += " ";
if(showToday==1) {
strCalendar += " | ";
}
strCalendar += " ";
strCalendar += " ";
strCalendar += " ";
strCalendar += "";
oPopBody.innerHTML = strCalendar;
}
function init() {
if(!ns4) {
if(!ie) {
yearNow += 1900;
}
crossobj = oPopBody.all.calendar;
crossMonthObj = oPopBody.all.selectMonth;
crossYearObj = oPopBody.all.selectYear;
monthConstructed = false;
yearConstructed = false;
sHTML1="
sHTML1+="onMouseover=\"this.className='cnj_input3';window.status='ÀÌÀü ´Þ(¿ù)·Î À̵¿'\" onMouseout=\"this.className='cnj_input2';window.status=''\"> "
sHTML1+="
sHTML1+="onMouseover=\"this.className='cnj_input3';window.status='´ÙÀ½ ´Þ(¿ù)·Î À̵¿'\" onMouseout=\"this.className='cnj_input2';window.status=''\"> "
sHTML1+="
sHTML1+="onMouseover=\"this.className='cnj_input3';window.status='¿ù ¼±ÅÃ'\" onMouseout=\"this.className='cnj_input4';window.status=''\"> ";
sHTML1+="
sHTML1+="onMouseover=\"this.className='cnj_input3';window.status='³âµµ ¼±ÅÃ'\" onMouseout=\"this.className='cnj_input4';window.status=''\"> ";
oPopup.document.getElementById("caption").innerHTML = sHTML1;
bPageLoaded = true;
if(showToday==1) {
oPopup.document.getElementById("lblToday").innerHTML = ""+
"
//" style='"+styleAnchor+"' href='javascript:monthSelected=monthNow;yearSelected=yearNow;constructCalendar();' onFocus='this.blur()'>"+
" style='"+styleAnchor+"' onclick='parent.totoday()' onFocus='this.blur()'>"+
"¿À´Ã ³¯Â¥ : "+yearNow+"³â "+
""+monthName[monthNow].substring(0,3)+" "+
""+dateNow+"ÀÏ "+ // ÀÏ
"";
}
}
}
Ŭ¸¯ÇÏ¸é ´Þ·Âdiv°¡ ¶ß´Â jsÆÄÀÏ ÀÔ´Ï´Ù.
oPopup.document.getElementById("caption").innerHTML = sHTML1; > ÀÌ ÁÙ¿¡¼ ¾Æ·¡ÀÇ ¿¡·¯ ¸Þ¼¼Áö°¡ ³ª¿É´Ï´Ù.
'innerHTML' ¼Ó¼º °ªÀ» ¼³Á¤ÇÒ ¼ö ¾ø½À´Ï´Ù. °³Ã¼°¡ nullÀ̰ųª Á¤ÀǵÇÁö ¾Ê¾Ò½À´Ï´Ù.
¿Ö ³ª¿À´Â°ÍÀÌ°í ¾î¶»°Ô ÇØ°áÀÌ °¡´ÉÇÑ°¡¿ä? | |
|