{"id":764,"date":"2003-01-14T02:51:47","date_gmt":"2003-01-14T02:51:47","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=764"},"modified":"2003-01-14T02:51:47","modified_gmt":"2003-01-14T02:51:47","slug":"%ec%82%ac%ec%9a%a9%ec%9d%b4-%ed%8e%b8%eb%a6%ac%ed%95%9c-%ec%9e%90%eb%b0%94%ec%8a%a4%ed%8a%b8%eb%a6%bd%ed%8a%b8-%eb%8b%ac%eb%a0%a5","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=764","title":{"rendered":"\uc0ac\uc6a9\uc774 \ud3b8\ub9ac\ud55c \uc790\ubc14\uc2a4\ud2b8\ub9bd\ud2b8 \ub2ec\ub825"},"content":{"rendered":"<p>\ub2ec\ub825 On\/Off &#8211; \ud589\ubcf5\ud55c\uace0\ub2c8<\/p>\n<p>\n*** \uc124\uba85<br \/>\n\uc790\uc798\ud55c \uae30\ub2a5\ub4e4\uc5d0 \ub300\ud55c \uac83\uc740 \uc2a4\ud06c\ub9bd\ud2b8\ub0b4\uc758 \uc8fc\uc11d\uac19\uc9c0 \uc54a\uc740 \uc8fc\uc11d\uc744 \ubcf4\uace0 \uc54c\uc544\uc11c\ub4e4..(\ud37d~!)<br \/>\n\uc0ac\uc6a9\uc740 <script>cal(2003, 1, 14, \"alert('{year}-{month}-{day}')\")<\/script> \uc640 \uac19\uc774 \ud569\ub2c8\ub2e4.<br \/>\n\ub2ec\ub825\uc5d0\uc11c \ubc18\ud658\ud558\ub294 \uac12\uc774\ub798\ubd10\uc57c \ub144, \uc6d4, \uc77c\uc774\uba74 \ucda9\ubd84\ud560 \uac83 \uac19\uc544\uc11c\uc694~ ^^;;<br \/>\n\ub2ec\ub825\uc744 \ucd9c\ub825\ud558\ub294 cal \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc815\uc758\ub429\ub2c8\ub2e4.(c\uc758 \ud615\uc2dd\uc744 \ube4c\uc790\uba74&#8230; ^^)<\/p>\n<p>void cal(int year, int month, int day, string function_string)<\/p>\n<p>\uc989, \ub9c8\uc9c0\ub9c9\uc758 string \ubd80\ubd84\uc5d0\ub294 \uc774 \ub2ec\ub825\uc744 \ud1b5\ud574\uc11c \uc2e4\ud589\ud560 \ud568\uc218\ub97c \ubb38\uc790\uc5f4\ub85c \uc801\uc5b4\uc8fc\uc2dc\uba74 \ub429\ub2c8\ub2e4.<br \/>\n\ud639\uc2dc \ud604\uc7ac\ubb38\uc11c\uc758 URL\uc744 \ubc14\uafb8\uace0\uc790 \ud558\uc2dc\ub294 \ubd84\ub4e4\uc740 document.location~~~ \uacfc \uac19\uc774 \ubc88\uac70\ub86d\uac8c \uc801\uc9c0 \uc54a\uc73c\uc154\ub3c4<br \/>\n\ud568\uc218\ubb38\uc790\uc5f4 \uc55e\uc5d0 url:\uc744 \ubd99\uc774\ub294 \uac83\ub9cc\uc73c\ub85c\ub3c4 \uac04\ub2e8\ud788 \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n\uc989, \uc774 \uac12\uc744 \ubc1b\uc544\uc11c \ub2e4\ub978 \ubb38\uc11c\uc5d0 \uac12\uc744 \uc804\ub2ec\ud558\uace0 \uc2f6\ub2e4\uba74<\/p>\n<p><script>cal(2003, 1, 14, \"url:calendar.php?year={year}&month={month}&day={day}\")<\/script><\/p>\n<p>\uacfc \uac19\uc740 \uc2dd\uc758 \uc0ac\uc6a9\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<br \/>\n\ub2e4\uc18c \uae38\uae30 \ub54c\ubb38\uc5d0 \uc800 \uac19\uc740 \uacbd\uc6b0\uc5d4 \uadf8\ub0e5 \ud30c\uc77c\ud558\ub098\ub85c \uc800\uc7a5\ud574\ub193\uace0 \ud638\ucd9c\ud574\uc11c \uc501\ub2c8\ub2e4\ub9cc,<br \/>\n\uc0ac\uc6a9\uc740 \uac01\uc790\uac00 \uc54c\uc544\uc11c&#8230; ^^;;<\/p>\n<p>\ubb34\ub2e8\uac1c\uc120 \ubc0f \uac74\uc804\ub534\uc9c0 \uc801\uadf9\ud658\uc601! \ub2e8 \uc800\uc5d0\uac8c\ub3c4 \uc54c\ub824\uc904 \uac83\uc744 \uc804\uc81c\ud569\ub2c8\ub2e4.<br \/>\n\ud5e4\ud5e4~~ \uac19\uc774 \uc54c\uc790\uad6c\uc694~~ (\ud5c8\uc811 -_-;;)<\/p>\n<p>G_cal.js<\/p>\n<p><script><br \/>\n\/*<br \/>\n *\t\u3000\u3000\u3000\u3000G calendar v0.5<br \/>\n *\t(\uacf5\ud734\uc77c \ubc0f \uad6d\uacbd\uc77c \uccb4\ud06c\uae30\ub2a5\uc5c6\uc74c)<br \/>\n *<br \/>\n *\u3000\u3000\u3000By \ud589\ubcf5\ud55c\uace0\ub2c8(gonom9@empal.com)<br \/>\n *\/<\/p>\n<p>var action_global = \"\"; \/\/action\uc758 \uc804\uc5ed\ubcc0\uc218<\/p>\n<p>function cal(year, month, day, action){<br \/>\n\tvar i, j, day_num=1;<br \/>\n\tvar last_week, month_link=\"\";<br \/>\n\tvar calDate = new Date(year, month-1, day_num);<br \/>\n\tvar checkDate = new Date();<br \/>\n\tvar date_array = new Array(6);<\/p>\n<p>\tfor(i=0;i<6;i++) date_array[i] = new Array(\"\",\"\",\"\",\"\",\"\",\"\",\"\");\n\n\n\t\/\/\uc2a4\ud06c\ub9bd\ud2b8 \ucd94\ucd9c \ubc0f \ubcc0\ud658, \ub0b4\uc6a9\uc774 \uc5c6\uc73c\uba74 \ub9c8\uc9c0\ub9c9 action \uc0ac\uc6a9<br \/>\n\tif(action == \"\"){<br \/>\n\t\tscript = action_global;<br \/>\n\t}else{<br \/>\n\t\tvar script = action;<br \/>\n\t\tvar action_mode = action.substring(0,3);<br \/>\n\t\tif(action_mode.toLowerCase()==\"url\") script = \"document.location.href='\"+action.substring(4,action.length)+\"'\";<br \/>\n\t\taction_global = script;<br \/>\n\t}<\/p>\n<p>\tfor(j=0;j<6;j++){<br \/>\n\t\tfor(i=0;i<7;i++){<br \/>\n\t\t\tif(j==0 && i==0)i = calDate.getDay();<br \/>\n\t\t\tdate_array[j][i]=day_num+\"\";<br \/>\n\t\t\tday_num++;<\/p>\n<p>\t\t\t\/\/\ud574\ub2f9 \ub0a0\uc9dc\uac12\uc5d0 \ub300\ud55c \uc720\ud6a8\uc131 \uac80\uc0ac<br \/>\n\t\t\tcheckDate.setFullYear(year, month-1, day_num);<br \/>\n\t\t\tif(checkDate.getDate() != day_num) break;<br \/>\n\t\t}<br \/>\n\t\tif(checkDate.getDate() != day_num) break;<br \/>\n\t}<br \/>\n\tlast_week = (date_array[5][0])?6:5;<\/p>\n<p>\toutStr = \"<\/p>\n<table bgcolor=#CCCCCC width=160 height=160 border=0 cellpadding=0 cellspacing=0 style='border:1 solid black'>\n<tr>\n<td>\n\";<br \/>\n\toutStr += \"<\/p>\n<table width=100% height=100% border=0 cellpadding=0 cellspacing=1 style='border:1 solid black'>\n\";<br \/>\n\toutStr += \"<\/p>\n<col width=20 align=center><\/col>\n<col width=20 align=center><\/col>\n<col width=20 align=center><\/col>\n<col width=20 align=center><\/col>\n<col width=20 align=center><\/col>\n<col width=20 align=center><\/col>\n<col width=20 align=center><\/col>\n<p>\n\";<br \/>\n\toutStr += \"<\/p>\n<tr>\n<td class=calendar style='color:red'>S<\/p>\n<td class=calendar>M<\/p>\n<td class=calendar>T<\/p>\n<td class=calendar>W<\/p>\n<td class=calendar>T<\/p>\n<td class=calendar>F<\/p>\n<td class=calendar style='color:blue'>S<\/tr>\n<p>\n\";<br \/>\n\tfor(j=0;j<last_week;j++){<br \/>\n\t\toutStr += \"<\/p>\n<tr>\";<br \/>\n\t\tfor(i=0;i<7;i++){<br \/>\n\t\t\t\/\/\uc2a4\ud06c\ub9bd\ud2b8 \uc790\ub8cc\ubcc0\ud658<br \/>\n\t\t\tif(date_array[j][i]!=\"\"){<br \/>\n\t\t\t\taction_script = script.replace(\"{year}\", year);<br \/>\n\t\t\t\taction_script = action_script.replace(\"{month}\",month);<br \/>\n\t\t\t\taction_script = action_script.replace(\"{day}\", date_array[j][i]);<br \/>\n\t\t\t}<br \/>\n\t\t\telse action_script = \"\";<\/p>\n<p>\n\t\t\t\/\/\ub0a0\uc9dc\ubcc4\ub85c \uc2a4\ud06c\ub9bd\ud2b8 \ucd9c\ub825<br \/>\n\t\t\tif(i==0){ outStr += \"<\/p>\n<td class=calendar style='color:red;cursor:hand' onMouseover=this.style.backgroundColor='#FFEEEE' onMouseout=this.style.backgroundColor='' onClick=\"\"+action_script+\"\">\"+date_array[j][i]+\"<\/td>\n<p>\"; continue; }<br \/>\n\t\t\tif(i==6){ outStr += \"<\/p>\n<td class=calendar style='color:blue;cursor:hand' onMouseover=this.style.backgroundColor='#EEEEFF' onMouseout=this.style.backgroundColor='' onClick=\"\"+action_script+\"\">\"+date_array[j][i]+\"<\/td>\n<p>\"; continue; }<br \/>\n\t\t\toutStr += \"<\/p>\n<td class=calendar style='cursor:hand' onMouseover=this.style.backgroundColor='#EEEEEE' onMouseout=this.style.backgroundColor='' onClick=\"\"+action_script+\"\">\"+date_array[j][i]+\"<\/td>\n<p>\";<br \/>\n\t\t}<br \/>\n\t\toutStr += \"<\/tr>\n<p>\n\";<br \/>\n\t}<br \/>\n\toutStr += \"<\/table>\n<\/td>\n<\/tr>\n<\/table>\n<p>\";<\/p>\n<p>\tmonth_link = (month > 1)? \"<a onClick=\"cal(\"+year+\",\"+(month-1)+\",\"+day+\",'')\" style='text-decoration:none; color:#909090; cursor:hand'>\u25c1<\/a> <font color=black>\"+month:\"\u25c1 <font color=black>\"+month;<br \/>\n\tmonth_link += (month < 12)? \"<\/font> <a onClick=\"cal(\"+year+\",\"+(month+1)+\",\"+day+\",'')\" style='text-decoration:none; color:#909090; cursor:hand'>\u25b7<\/a>\":\"<\/font> \u25b7\";<\/p>\n<p>\t\/\/HTML \ub300\uc785<br \/>\n\tdocument.all.G_cal_body.innerHTML = outStr;<br \/>\n\tdocument.all.G_cal_year.innerHTML = \"<a onClick=\"cal(\"+(year-1)+\",\"+month+\",\"+day+\",'')\" style='text-decoration:none; color:#909090; cursor:hand'>\u25c1<\/a> <font color=black>\"+year+\"<\/font> <a onClick=\"cal(\"+(year+1)+\",\"+month+\",\"+day+\",'')\" style='text-decoration:none; color:#909090; cursor:hand'>\u25b7<\/a>\";<br \/>\n\tdocument.all.G_cal_month.innerHTML = month_link;<br \/>\n}<br \/>\nfunction onoff_Gcal(){<br \/>\n\tdocument.all.G_cal.style.top = event.clientY+5;<br \/>\n\tdocument.all.G_cal.style.left = event.clientX+5;<\/p>\n<p>\tdocument.all.G_cal.style.visibility = (document.all.G_cal.style.visibility==\"hidden\")?\"\":\"hidden\";<br \/>\n}<br \/>\ndocument.writeln(\"<\/p>\n<style>td.calendar{font-size:7pt; font-family:tahoma;color:black; background-color:white}<\/style>\n<p>\");<br \/>\ndocument.writeln(\"\"<br \/>\n+\"<\/p>\n<div id=G_cal style='width=160;position:absolute;visibility:hidden'>\"<br \/>\n+\"<\/p>\n<table bgcolor=#EEEEEE width=160 height=25 border=0 cellpadding=3 cellspacing=0 style='border:1 solid black'>\"<br \/>\n+\"\t<\/p>\n<tr>\n<td align=center style='font-size:8pt; font-family:tahoma'>\"<br \/>\n+\"\t\t<span id=G_cal_year><\/span>&nbsp;&nbsp;<span id=G_cal_month><\/span>\"<br \/>\n+\"\t<\/td>\n<\/tr>\n<p>\"<br \/>\n+\"<\/table>\n<p>\"<br \/>\n+\"<\/p>\n<div id=G_cal_body style='width:160'>\"<br \/>\n+\"<\/div>\n<\/div>\n<p>\");<br \/>\n<\/script><\/p>\n<p> \ud0a4\ud0a4 \uc0c1\ub2f9\ud788 \uc720\uc6a9\ud55c \uc2a4\ud06c\ub9bd\ud2b8\ub124\uc694.<\/p>\n<p><SCRIPT SRC=\".\/cal.js\"><\/SCRIPT><br \/>\n<FORM NAME=fm METHOD=POST ACTION=\"\"><br \/>\n<INPUT TYPE=\"text\" NAME=\"xdate\" OnFocus=blur(this);cal(2003,1,14,\"fm.xdate.value=('{y}-{m}-{d}');onoff_Gcal();\");onoff_Gcal();><br \/>\n<\/FORM><\/p>\n<p>\uc0ac\uc6a9\uc608\uc81c\ub294 \uc81c\uac00 \ud558\ub098 \uc62c\ub9bd\ub2c8\ub2e4. 01\/14 11:07:55  <\/p>\n<p> \ud0a4\ud0a4 action_script = script.replace(&#8220;{y}&#8221;, year);<br \/>\naction_script = action_script.replace(&#8220;{m}&#8221;,month);<br \/>\naction_script = action_script.replace(&#8220;{d}&#8221;, date_array[j][i]);<br \/>\n\uc9e7\uac8c \ubc14\uafd4\uc11c ^^ <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub2ec\ub825 On\/Off &#8211; \ud589\ubcf5\ud55c\uace0\ub2c8 *** \uc124\uba85 \uc790\uc798\ud55c \uae30\ub2a5\ub4e4\uc5d0 \ub300\ud55c \uac83\uc740 \uc2a4\ud06c\ub9bd\ud2b8\ub0b4\uc758 \uc8fc\uc11d\uac19\uc9c0 \uc54a\uc740 \uc8fc\uc11d\uc744 \ubcf4\uace0 \uc54c\uc544\uc11c\ub4e4..(\ud37d~!) \uc0ac\uc6a9\uc740 \uc640 \uac19\uc774 \ud569\ub2c8\ub2e4. \ub2ec\ub825\uc5d0\uc11c \ubc18\ud658\ud558\ub294 \uac12\uc774\ub798\ubd10\uc57c \ub144, \uc6d4, \uc77c\uc774\uba74 \ucda9\ubd84\ud560 \uac83 \uac19\uc544\uc11c\uc694~ ^^;; \ub2ec\ub825\uc744 \ucd9c\ub825\ud558\ub294 cal \ud568\uc218\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc815\uc758\ub429\ub2c8\ub2e4.(c\uc758 \ud615\uc2dd\uc744 \ube4c\uc790\uba74&#8230; ^^) void cal(int year, int month, int day, string function_string) \uc989, \ub9c8\uc9c0\ub9c9\uc758 string \ubd80\ubd84\uc5d0\ub294 \uc774 \ub2ec\ub825\uc744 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-764","post","type-post","status-publish","format-standard","hentry","category-papa-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=764"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/764\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}