{"id":675,"date":"2007-08-20T19:54:58","date_gmt":"2007-08-20T10:54:58","guid":{"rendered":"http:\/\/terzeron.com\/?p=675"},"modified":"2007-08-20T19:54:58","modified_gmt":"2007-08-20T10:54:58","slug":"htmljavascript-%ec%9d%b4%eb%af%b8-%ec%a1%b4%ec%9e%ac%ed%95%98%ea%b3%a0-%ec%9e%88%eb%8a%94-%ed%85%8c%ec%9d%b4%eb%b8%94-%ec%bb%ac%eb%9f%bc%ec%97%90-%eb%a7%81%ed%81%ac-%ec%b6%94%ea%b0%80%ed%95%98","status":"publish","type":"post","link":"https:\/\/terzeron.com\/?p=675","title":{"rendered":"[HTML\/Javascript] \uc774\ubbf8 \uc874\uc7ac\ud558\uace0 \uc788\ub294 \ud14c\uc774\ube14 \uceec\ub7fc\uc5d0 \ub9c1\ud06c \ucd94\uac00\ud558\uae30"},"content":{"rendered":"<table border=\"1\">\n<tr>\n<td colspan=\"3\">\uc601\ud654<\/td>\n<\/tr>\n<tr>\n<td>\ub514\uc6cc<\/td>\n<td>+<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>\ud654\ub824\ud55c \ud734\uac00<\/td>\n<td>+<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>\ud2b8\ub79c\uc2a4\ud3ec\uba38<\/td>\n<td>+<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>\uc9c0\uae08\uc0ac\ub791\ud558\ub294\uc0ac\ub78c\uacfc\uc0b4\uace0\uc788\uc2b5\ub2c8\uae4c<\/td>\n<td>&#8211;<\/td>\n<td>1<\/td>\n<\/tr>\n<\/table>\n<p>\uc774\ub807\uac8c \uc0dd\uae34 \ud14c\uc774\ube14\uc774 \uc788\ub2e4\uace0 \uce58\uc790. \ud14c\uc774\ube14\uc758 \ubaa8\ub4e0 \ud589\uc758 \uccab\ubc88\uc9f8 \uceec\ub7fc\uc5d0 \ub9c1\ud06c\ub97c \ucd94\uac00\ud558\ub824\uace0 \ud55c\ub2e4. HTML \ud30c\uc77c \uc0dd\uc131 \uc2dc\uc5d0 \uceec\ub7fc \uac12 \uc790\uccb4\uc5d0 \ub9c1\ud06c\ub97c \ub2e4\ub294 \ubc29\ubc95 \ub300\uc2e0, Javascript\ub97c \uc774\uc6a9\ud558\uc5ec HTML \ud30c\uc77c\uc774 \uc0dd\uc131\ub41c \ud6c4\uc5d0 A \ud0dc\uadf8\ub97c \ub367\ubd99\uc5ec\uc11c \ub9c1\ud06c\ub97c \ub2ec\uc544\uc8fc\ub294 \ubc29\ubc95\uc744 \uc81c\uc2dc\ud55c\ub2e4.<\/p>\n<pre class=\"brush: javascript\">mytables = document.body.getElementsByTagName(\"table\");\nfor (i = 0; i &lt; mytables.length; ++i) {\nmytable = mytables[i];\nmytbody = mytable.getElementsByTagName(\"tbody\")[0];\nmytrs = mytbody.getElementsByTagName(\"tr\");\nfor (j = 1; j &lt; mytrs.length; ++j) {\nmytd = mytrs[j].getElementsByTagName(\"td\")[0];\nmycell = mytd.firstChild;\nvar obj = document.createElement(\"a\");\nobj.href=\"http:\/\/somewhere.com\/query=\" + encodeURI(mycell.data);\nobj.innerHTML = mycell.data;\nmytd.appendChild(obj);\nmytd.removeChild(mycell);\n}\n}<\/pre>\n<p>\ud575\uc2ec\uc740 \ud2b9\uc815 \uc870\uac74\uc758 td\ub97c \ucc3e\uc544\uc11c(\uccab\ubc88\uc9f8 \uceec\ub7fc\ub9cc), td\uc758 \uac12\uc744 firstChild\ub85c \uaebc\ub0b4\uace0 A \ud0dc\uadf8\ub97c createElement()\ub85c \uc0dd\uc131\ud558\uace0 href\uc640 innerHTML\uc744 \uc368 \uc900 \ub2e4\uc74c\uc5d0 td\uc5d0 appendChild\ud558\ub294 \uac83\uc774\ub2e4.<\/p>\n<p>\ubb3c\ub860 \uae30\uc874\uc758 child\ub294 removeChild()\ub85c \uc81c\uac70\ud574\uc57c\ud55c\ub2e4.<\/p>\n<div class=\"fb-background-color\">\n\t\t\t  <div \n\t\t\t  \tclass = \"fb-comments\" \n\t\t\t  \tdata-href = \"https:\/\/terzeron.com\/?p=675\"\n\t\t\t  \tdata-numposts = \"100\"\n\t\t\t  \tdata-lazy = \"true\"\n\t\t\t\tdata-colorscheme = \"light\"\n\t\t\t\tdata-order-by = \"time\"\n\t\t\t\tdata-mobile=true>\n\t\t\t  <\/div><\/div>\n\t\t  <style>\n\t\t    .fb-background-color {\n\t\t\t\tbackground: #ffffff !important;\n\t\t\t}\n\t\t\t.fb_iframe_widget_fluid_desktop iframe {\n\t\t\t    width: 100% !important;\n\t\t\t}\n\t\t  <\/style>\n\t\t  ","protected":false},"excerpt":{"rendered":"<p>\uc601\ud654 \ub514\uc6cc + 1 \ud654\ub824\ud55c \ud734\uac00 + 5 \ud2b8\ub79c\uc2a4\ud3ec\uba38 + 1 \uc9c0\uae08\uc0ac\ub791\ud558\ub294\uc0ac\ub78c\uacfc\uc0b4\uace0\uc788\uc2b5\ub2c8\uae4c &#8211; 1 \uc774\ub807\uac8c \uc0dd\uae34 \ud14c\uc774\ube14\uc774 \uc788\ub2e4\uace0 \uce58\uc790. \ud14c\uc774\ube14\uc758 \ubaa8\ub4e0 \ud589\uc758 \uccab\ubc88\uc9f8 \uceec\ub7fc\uc5d0 \ub9c1\ud06c\ub97c \ucd94\uac00\ud558\ub824\uace0 \ud55c\ub2e4. HTML \ud30c\uc77c \uc0dd\uc131 \uc2dc\uc5d0 \uceec\ub7fc \uac12 \uc790\uccb4\uc5d0 \ub9c1\ud06c\ub97c \ub2e4\ub294 \ubc29\ubc95 \ub300\uc2e0, Javascript\ub97c \uc774\uc6a9\ud558\uc5ec &hellip; <a href=\"https:\/\/terzeron.com\/?p=675\">\uacc4\uc18d \uc77d\uae30 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[13,9],"tags":[],"class_list":["post-675","post","type-post","status-publish","format-standard","hentry","category-programming","category-9"],"_links":{"self":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts\/675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=675"}],"version-history":[{"count":0,"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts\/675\/revisions"}],"wp:attachment":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}