{"id":141,"date":"2015-12-06T01:25:00","date_gmt":"2015-12-05T16:25:00","guid":{"rendered":"https:\/\/trret.com\/?p=141"},"modified":"2021-03-19T23:43:54","modified_gmt":"2021-03-19T14:43:54","slug":"javascript-%ec%bf%a0%ed%82%a4%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%eb%a0%88%ec%9d%b4%ec%96%b4%ed%8c%9d%ec%97%85-%ec%98%88%ec%a0%9c","status":"publish","type":"post","link":"https:\/\/trret.com\/?p=141","title":{"rendered":"JavaScript \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \ub808\uc774\uc5b4\ud31d\uc5c5 \uc608\uc81c"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>&lt;!doctype html>\n&lt;head>\n&lt;meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">\n&lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n&lt;title>\ub808\uc774\uc5b4\ud31d\uc5c5&lt;\/title>\n&lt;style>\n\tbody,div {margin:0;padding:0}\n\timg{vertical-align:top; border:0;}\n\ta,a:hover{text-decoration:none;}\n\n\t\/*\ub808\uc774\uc5b4\ud31d\uc5c5*\/\n\t#div_laypopup1{\n\t\tdisplay:none;\n\t\tposition:absolute;\n\t\twidth:425px; height:510px;\n\t\tleft:700px; top:94px;\n\t\tcolor:white;\n\t\ttext-align:center;\n\t\tz-index:5;\n\t}\n\t.todayClose{\n\t\tposition:absolute; right:6px; bottom:5px;\n\t\tmargin:0; padding:0;\n\t\tcolor:#fff;\n\t}\n\t.todayClose input{vertical-align:middle;}\n\t.justClose{\n\t\tdisplay:inline-block;\n\t\tfont-family:\"Malgun Gothic\";\n\t\tcolor:#000;\n\t\tcursor:pointer;\n\t\tline-height: 1.2em;\n\t\tborder:1px solid #ccc;\n\t\tpadding:0px 2px 1px 2px;\n\t\tmargin-left:3px;\n\t\tbackground-color:#FFF;\n\t}\n&lt;\/style>\n&lt;\/head>\n\n&lt;body>\n&lt;div id=\"div_laypopup1\" name='div_laypopup1'>  \n    &lt;img src=\"http:\/\/placehold.it\/425x510\">\n        &lt;p class='todayClose'>\n            &lt;label for=\"pop2close\">&lt;input id='pop2close' type=\"checkbox\" value=\"OK\" onclick=\"closeWin('div_laypopup1', 1);\"\/>&amp;nbsp; \ud558\ub8e8\ub3d9\uc548 \uc774 \ucc3d\uc744 \uc5f4\uc9c0 \uc54a\uc74c&lt;\/label>\n            &lt;span class='justClose' onclick=\"closeWin('div_laypopup1',0)\">\ub2eb\uae30&lt;\/span>\n        &lt;\/p>\n&lt;\/div>\n\n&lt;script type=\"text\/javascript\">\n\/\/\ud31d\uc5c5\ub744\uc6b0\uae30\n    function openWin(winName){  \n       var blnCookie    = getCookie( winName );  \n       var obj = eval( \"window.\" + winName );  \n       if( !blnCookie ) {  \n           obj.style.display = \"block\";  \n       };\n    };\n\/\/ \ucfe0\ud0a4 \uac00\uc838\uc624\uae30  \n    function getCookie( name ) {  \n       var nameOfCookie = name + \"=\";  \n       var x = 0;  \n       while ( x &lt;= document.cookie.length )  \n       {  \n           var y = (x+nameOfCookie.length);  \n           if ( document.cookie.substring( x, y ) == nameOfCookie ) {  \n               if ( (endOfCookie=document.cookie.indexOf( \";\", y )) == -1 )  \n                   endOfCookie = document.cookie.length;  \n               return unescape( document.cookie.substring( y, endOfCookie ) );  \n           }  \n           x = document.cookie.indexOf( \" \", x ) + 1;  \n           if ( x == 0 )  \n               break;  \n       }  \n       return \"\";  \n    };\n  \/\/24\uc2dc\uac04 \ucfe0\ud0a4 \uc124\uc815\ud558\uae30  \n        openWin('div_laypopup1');  \n    function setCookie( name, value, expiredays ) {   \n       var todayDate = new Date();   \n       todayDate.setDate( todayDate.getDate() + expiredays );   \n       document.cookie = name + \"=\" + escape( value ) + \"; path=\/; expires=\" + todayDate.toGMTString() + \";\"\n    };         \n    \/\/ \ucc3d\ub2eb\uae30  \n    function closeWin(winName, expiredays) {   \n      setCookie( winName, \"done\" , expiredays);   \n      var obj = eval( \"window.\" + winName );  \n            obj.style.display = \"none\";  \n    }\n\n&lt;\/script>\n&lt;\/body>\n&lt;\/html>\n\n<a href=\"\/example\/j\/layerPopup.php\" data-type=\"URL\" data-id=\"\/example\/j\/layerPopup.php\">\uc608\uc81c\ub9c1\ud06c<\/a><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/trret.com\/index.php?rest_route=\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/trret.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trret.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trret.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":2,"href":"https:\/\/trret.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":152,"href":"https:\/\/trret.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/152"}],"wp:attachment":[{"href":"https:\/\/trret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trret.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}