{"id":758,"date":"2018-03-16T16:45:16","date_gmt":"2018-03-16T07:45:16","guid":{"rendered":"http:\/\/www.takaya-com.jp\/archives\/?p=758"},"modified":"2018-03-16T16:45:16","modified_gmt":"2018-03-16T07:45:16","slug":"%e5%85%a5%e5%8a%9b%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%ab%e5%a4%89%e5%8c%96%e3%82%92%e3%81%a4%e3%81%91%e3%82%8b","status":"publish","type":"post","link":"https:\/\/takaya-com.jp\/archives\/2018\/03\/%e5%85%a5%e5%8a%9b%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%ab%e5%a4%89%e5%8c%96%e3%82%92%e3%81%a4%e3%81%91%e3%82%8b\/","title":{"rendered":"jQuery\u3067\u30d5\u30a9\u30fc\u30e0\u306e\u5165\u529b\u6b04\u3092\u30aa\u30b7\u30e3\u30ec\u306b\u898b\u305b\u308b"},"content":{"rendered":"<p><!-- \u672c\u6587 --><br \/>\n\u5358\u8abf\u306b\u306a\u308a\u304c\u3061\u306a\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306b\u3061\u3087\u3063\u3068\u3057\u305f\u5909\u5316\u3092\u3064\u3051\u308bjQuery\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3059\uff01<\/p>\n<p>\u8a2d\u7f6e\u3082\u7c21\u5358\u3067\u3059\u306e\u3067\u3001\u4e0a\u624b\u304f\u4f7f\u3063\u3066\u6700\u5f8c\u307e\u3067\u5165\u529b\u3057\u3066\u3082\u3089\u3048\u308b\u3068\u3044\u3044\u3067\u3059\u306d\uff01\uff01<br \/>\n\u4eca\u56de\u4f7f\u7528\u3057\u305f\u306e\u306f\u3001<b>jquery.label_better.js<\/b>\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u2193\u4ee5\u4e0b\u304c\u5b9f\u969b\u306e\u30bd\u30fc\u30b9\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<p>\u25bcJavaScript<\/p>\n<pre class=\"lang:js decode:true \" title=\"JavaScript\" >\r\n    <script type=\"text\/javascript\" src=\"http:\/\/code.jquery.com\/jquery-1.9.1.js\"><\/script>\r\n    <script type=\"text\/javascript\" src=\"jquery.label_better.js\"><\/script>\r\n    <script>\r\n        $(document).ready(function() {\r\n            $(\"input.label_better\").label_better({\r\n                position: \"top\", \/\/\u8868\u793a\u4f4d\u7f6e\u3092\u4e0a\u4e0b\u5de6\u53f3\u6307\u5b9a\u3067\u304d\u307e\u3059\r\n                animationTime: 500, \/\/\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u6642\u9593\u3092\u30df\u30ea\u79d2\u5358\u4f4d\u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\r\n                easing: \"ease-in-out\", \/\/\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u65b9\u6cd5\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\r\n                offset: 7, \/\/\u30e9\u30d9\u30eb\u306e\u8868\u793a\u4f4d\u7f6e\u3092\u8abf\u6574\u3067\u304d\u307e\u3059\r\n                hidePlaceholderOnFocus: true \/\/\u30d5\u30a9\u30fc\u30ab\u30b9\u6642\u306e\u521d\u671f\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u306e\u6709\u7121\r\n            });\r\n        });\r\n    <\/script>\r\n<\/pre>\n<p>\u25bcCSS<\/p>\n<pre class=\"lang:css decode:true \" title=\"CSS\" >\r\n<style type=\"text\/css\">\r\nbody {\r\n    position: relative;\r\n    width: 100%;\r\n    height: 100%;\r\n    color: mediumvioletred;\r\n}\r\n\r\n#wrap {\r\n    position: absolute;\r\n    width: 400px;\r\n    top: 0;\r\n    bottom: 0;\r\n    right: 0;\r\n    left: 0;\r\n    margin: auto;\r\n}\r\n\r\ninput[type=\"text\"],\r\ninput[type=\"email\"],\r\ninput[type=\"password\"] {\r\n    height: 24px;\r\n    width: 250px;\r\n    margin-top: 30px;\r\n    padding-left: 10px;\r\n    border-radius: 12px;\r\n    background-color: #ffffcc;\r\n}\r\n\r\ninput:focus {\r\n    outline: none;\r\n    background-color: floralwhite;\r\n}\r\n<\/style>\r\n<\/pre>\n<p>\u25bcHTML<\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"XHTML\" >\r\n    <div id=\"wrap\">\r\n        <form action=\"\">\r\n            <input type=\"text\" class=\"label_better\" data-new-placeholder=\"\u59d3\u3068\u540d\u306e\u9593\u306f\u5168\u89d2\u30b9\u30da\u30fc\u30b9\" placeholder=\"\u59d3\u3000\u540d\">\r\n            <br><input type=\"email\" class=\"label_better\" data-new-placeholder=\"\u643a\u5e2f\u306e\u65b9\u306f\u53d7\u4fe1\u8a31\u53ef\u3057\u3066\u304f\u3060\u3055\u3044\" placeholder=\"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\">\r\n            <br><input type=\"password\" class=\"label_better\" data-new-placeholder=\"\u534a\u89d2\u82f1\u65708\u6587\u5b57\u4ee5\u4e0a\" placeholder=\"\u30d1\u30b9\u30ef\u30fc\u30c9\">\r\n            <br><input type=\"password\" class=\"label_better\" data-new-placeholder=\"\u78ba\u8a8d\u306e\u305f\u3081\u518d\u5ea6\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\" placeholder=\"\u30d1\u30b9\u30ef\u30fc\u30c9(\u518d\u5165\u529b)\">\r\n        <\/form>\r\n    <\/div>\r\n<\/pre>\n<p>\u4eca\u56de\u3001\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f\u306e\u306f\u3001<br \/>\n<a href=\"http:\/\/www.thepetedesign.com\/demos\/label_better_demo.html\" target=\"_blank\" style=\"display: inline\">\u300ejQuery Label Better\u300f<\/a>\u3067\u3059\u3002<br \/>\npete design\u3055\u3093\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.takaya-com.jp\/archives\/demo\/label_better\/\" target=\"_blank\">\u30c7\u30e2\u30da\u30fc\u30b8\u306f\u3001\u3053\u3061\u3089<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5358\u8abf\u306b\u306a\u308a\u304c\u3061\u306a\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306b\u3061\u3087\u3063\u3068\u3057\u305f\u5909\u5316\u3092\u3064\u3051\u308bjQuery\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3059\uff01 \u8a2d\u7f6e\u3082\u7c21\u5358\u3067\u3059\u306e\u3067\u3001\u4e0a\u624b\u304f\u4f7f\u3063\u3066\u6700\u5f8c\u307e\u3067\u5165\u529b\u3057\u3066\u3082\u3089\u3048\u308b\u3068\u3044\u3044\u3067\u3059\u306d\uff01\uff01 \u4eca\u56de\u4f7f\u7528\u3057\u305f\u306e\u306f\u3001jquery.label_be [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/posts\/758"}],"collection":[{"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/comments?post=758"}],"version-history":[{"count":4,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/posts\/758\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/posts\/758\/revisions\/762"}],"wp:attachment":[{"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/media?parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/categories?post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/takaya-com.jp\/archives\/wp-json\/wp\/v2\/tags?post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}