{"id":37,"date":"2011-12-27T23:50:01","date_gmt":"2011-12-28T07:50:01","guid":{"rendered":"http:\/\/h2plus.biz\/hiromitsu\/?p=37"},"modified":"2011-12-28T00:12:23","modified_gmt":"2011-12-28T08:12:23","slug":"%e3%82%ab%e3%83%bc%e3%82%bd%e3%83%ab%e3%82%92%e5%90%88%e3%82%8f%e3%81%9b%e3%82%8b%e3%81%a8%e6%96%87%e5%ad%97%e3%81%8c%e6%b6%88%e3%81%88%e3%82%8b%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0","status":"publish","type":"post","link":"https:\/\/h2plus.biz\/hiromitsu\/entry\/37","title":{"rendered":"\u30ab\u30fc\u30bd\u30eb\u3092\u5408\u308f\u305b\u308b\u3068\u6587\u5b57\u304c\u6d88\u3048\u308b\u30d5\u30a9\u30fc\u30e0"},"content":{"rendered":"<p><img loading=\"lazy\" src=\"http:\/\/h2plus.biz\/hiromitsu\/wp-content\/uploads\/2011\/12\/search_form.gif\" alt=\"\" title=\"search_form\" width=\"242\" height=\"87\" class=\"alignright size-full wp-image-38\" \/>\u672c\u30d6\u30ed\u30b0\u306e\u691c\u7d22\u7a93\uff08\u753b\u9762\u53f3\u4e0a\uff09\u306e\u3088\u3046\u306b\u3001\u30ab\u30fc\u30bd\u30eb\u3092\u5408\u308f\u305b\u308b\u3068\u6587\u5b57\u304c\u6d88\u3048\u308b\u30d5\u30a9\u30fc\u30e0\u306f\u6700\u8fd1\u3088\u304f\u898b\u304b\u3051\u308b\u3002jQuery\u3092\u4f7f\u3063\u3066\u3053\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u3044\u3044\u304b\u3002\u57fa\u672c\u30c6\u30af\u30cb\u30c3\u30af\u3068\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3057\u3066\u304a\u3053\u3046\u3002<\/p>\n<p><!--more--><br \/>\n\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u7d39\u4ecb\u3059\u308bHTML\u306e\u57fa\u672c\u69cb\u9020\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;http:\/\/code.jquery.com\/jquery.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\n$(function() {\r\n    \/\/ Implement later...\r\n});\r\n&lt;\/script&gt;\r\n&lt;style type=&quot;text\/css&quot;&gt;\r\ninput#sample {\r\n    width:200px;\r\n    padding:2px;\r\n}\r\ninput.dummy_text {\r\n    color:#888;\r\n}\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;input type=&quot;text&quot; id=&quot;sample&quot; value=&quot;&quot; \/&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>12\u884c\u76ee\u306e<code>input#sample<\/code>\u306e\u3088\u3046\u306b<code>padding<\/code>\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u3001\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u305f\uff0f\u5916\u308c\u305f\u3068\u304d\u306b\u5fae\u5999\u306b\u30d5\u30a9\u30fc\u30e0\u306e\u914d\u7f6e\u4f4d\u7f6e\u304c\u305a\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\uff01<\/p>\n<h3>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b<\/h3>\n<p>\u307e\u305a\u306f\u6700\u3082\u5358\u7d14\u306a\u30d1\u30bf\u30fc\u30f3\u304b\u3089\u3002\u30d5\u30a9\u30fc\u30e0\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u3066\u304a\u3089\u305a\u3001\u304b\u3064\u30d5\u30a9\u30fc\u30e0\u306b\u4f55\u3082\u5165\u529b\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306e\u307f\u3001\u300cInput a keyword here\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(function() {\r\n\t$('#sample_text').focus(function() {\r\n\t\tif($(this).hasClass('dummy_text')) {\r\n\t\t\t$(this).removeClass().val('');\r\n\t\t}\r\n\t})\r\n\t.blur(function() {\r\n\t\tif($(this).val().length == 0) {\r\n\t\t\t$(this).addClass('dummy_text').val('Input a keyword here');\r\n\t\t}\r\n\t})\r\n\t.blur();\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308b\u3002<\/p>\n<pre><iframe src=\"\/hiromitsu\/wp-content\/uploads\/2011\/12\/sample_text.html\" frameborder=\"0\" scrolling=\"no\" width=\"100%\" height=\"28\"><\/iframe><\/pre>\n<h3>\u30d5\u30a9\u30fc\u30e0\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b<\/h3>\n<p>\u30c6\u30ad\u30b9\u30c8\u306e\u4ee3\u308f\u308a\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u3002\u307e\u305a\u3001\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u3066\u3044\u306a\u3044\u3068\u304d\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u304a\u304f\u3002\u30a4\u30e1\u30fc\u30b8\u306e\u9ad8\u3055\u309218px\u304f\u3089\u3044\u306b\u3057\u3066\u304a\u304f\u3068\u30d5\u30a9\u30fc\u30e0\u306b\u3057\u3063\u304f\u308a\u306f\u307e\u3063\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>\u305d\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306aCSS\u3092\u66f8\u304d\u8db3\u3059\u3002<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\ninput.dummy_image {\r\n  background:url(&quot;bg_search_google.gif&quot;) no-repeat 4px;\r\n}\r\n<\/pre>\n<p><code>bg_search_google.gif<\/code>\u306e\u90e8\u5206\u306f\u7528\u610f\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u3078\u306eURL\u3002\u307e\u305f\u3001\u6700\u5f8c\u306e<code>4px<\/code>\u3082\u7528\u610f\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u306b\u5fdc\u3058\u3066\u5fae\u8abf\u6574\u304c\u5fc5\u8981\u3002<\/p>\n<p>\u3067\u3001jQuery\u306e\u30b3\u30fc\u30c9\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(function() {\r\n\t$('#sample_image') .focus(function() {\r\n\t\tif($(this).hasClass('dummy_image')) {\r\n\t\t\t$(this).removeClass();\r\n\t\t}\r\n\t})\r\n\t.blur(function() {\r\n\t\tif($(this).val().length == 0) {\r\n\t\t\t$(this).addClass('dummy_image');\r\n\t\t}\r\n\t})\r\n\t.blur();\r\n});\r\n<\/pre>\n<p>\u30c6\u30ad\u30b9\u30c8\u306e\u4f8b\u3068\u307b\u307c\u540c\u3058\u3002\u30d5\u30a9\u30fc\u30e0\u5185\u306b\u8868\u793a\u3055\u305b\u308b\u3082\u306e\u3092<code>val()<\/code>\u3067\u6307\u5b9a\u3059\u308b\u304b\u3001CSS\u3067\u80cc\u666f\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b\u304b\u306e\u9055\u3044\u3002<\/p>\n<pre><iframe src=\"\/hiromitsu\/wp-content\/uploads\/2011\/12\/sample_image.html\" frameborder=\"0\" scrolling=\"no\" width=\"100%\" height=\"28\"><\/iframe><\/pre>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u30d5\u30a9\u30fc\u30e0\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b<\/h3>\n<p>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u305f\u4f8b\u3067\u6271\u3063\u305f\u30d5\u30a9\u30fc\u30e0\u306finput\u8981\u7d20\u306etype\u5c5e\u6027\u304ctext\u3060\u3063\u305f\u304c\u3001type\u5c5e\u6027\u304cpassword\u3060\u3063\u305f\u5834\u5408<code>val()<\/code>\u3067\u6e21\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u306f\u30de\u30b9\u30af\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u307e\u3063\u305f\u304f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u4f1d\u308f\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3002<code>val()<\/code>\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6e21\u3059\u969b\u306b\u3001type\u5c5e\u6027\u3092text\u304b\u3089password\u306b\u5909\u3048\u308c\u3070\u3044\u3044\u306e\u3067\u306f\uff1f\u3068\u601d\u3044\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u4f8b\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u3048\u3066\u307f\u305f\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(function() {\r\n\t$('#sample_text').focus(function() {\r\n\t\tif($(this).hasClass('dummy_text')) {\r\n\t\t\t$(this).removeClass().attr('type', 'password').val('');\r\n\t\t}\r\n\t})\r\n\t.blur(function() {\r\n\t\tif($(this).val().length == 0) {\r\n\t\t\t$(this).addClass('dummy_text').attr('type', 'text').val('Input your password here');\r\n\t\t}\r\n\t})\r\n\t.blur();\r\n});\r\n<\/pre>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089\u3053\u308c\u306f\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3002input\u8981\u7d20\u306etype\u5c5e\u6027\u306f\u5f8c\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3088\u3046\u3060\u3002<\/p>\n<p>\u300cInput your password here\u300d\u3068\u3044\u3046\u6587\u5b57\u3092\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u4f5c\u6210\u3059\u308c\u3070\u3001\u30d5\u30a9\u30fc\u30e0\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u305f\u4f8b\u3067\u5b9f\u73fe\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u308b\u304c\u3001\u8868\u793a\u30e1\u30c3\u30bb\u30fc\u30b8\u6bce\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u306e\u306f\u30ca\u30f3\u30bb\u30f3\u30b9\u3002<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u30d5\u30a9\u30fc\u30e0\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b\u306b\u306f\u3061\u3087\u3063\u3068\u5de5\u592b\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u6700\u521d\u306bHTML\u4e0a\u3067input\u8981\u7d20\u306etype\u5c5e\u6027\u3092password\u306b\u5909\u66f4\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre class=\"brush: xml; first-line: 18; title: ; notranslate\" title=\"\">\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;input type=&quot;password&quot; id=&quot;sample&quot; value=&quot;&quot; \/&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>\u6b21\u306bCSS\u30af\u30e9\u30b9\u30921\u3064\u8ffd\u52a0\u3002<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\nspan.dummy_password {\r\n  color:#888;\r\n  font-size:10pt;\r\n  position:absolute;\r\n  padding:4px;\r\n}\r\n<\/pre>\n<p>position\u30d7\u30ed\u30d1\u30c6\u30a3\u3092absolute\u306b\u3057\u3066top\u30d7\u30ed\u30d1\u30c6\u30a3\u3084left\u30d7\u30ed\u30d1\u30c6\u30a3\u306fjQuery\u3067\u5f8c\u304b\u3089\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(function() {\r\n\tfunction make_dummy_password(obj, msg)\r\n\t{\r\n\t\tvar pos = obj.position();\r\n\t\tvar dummy = $('&lt;span&gt;');\r\n\t\tdummy.text(msg)\r\n\t\t\t.addClass('dummy_password')\r\n\t\t\t.css({top:pos.top,left:pos.left})\r\n\t\t\t.click(function() { obj.focus(); });\r\n\t\t$('body').append(dummy);\r\n\t\treturn dummy;\r\n\t}\r\n\r\n\tvar dummy_password = make_dummy_password($('#sample_password'), 'Input your password here');\r\n\t$('#sample_password').focus(function() {\r\n\t\tdummy_password.hide();\r\n\t})\r\n\t.blur(function() {\r\n\t\tif($(this).val().length == 0) {\r\n\t\t\tdummy_password.show();\r\n\t\t}\r\n\t})\r\n\t.blur();\r\n});\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u30d5\u30a9\u30fc\u30e0\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<pre><iframe src=\"\/hiromitsu\/wp-content\/uploads\/2011\/12\/sample_password.html\" frameborder=\"0\" scrolling=\"no\" width=\"100%\" height=\"28\"><\/iframe><\/pre>\n<p>9\u884c\u76ee\u306e<code>click()<\/code>\u30cf\u30f3\u30c9\u30e9\u306e\u5b9f\u88c5\u3092\u5fd8\u308c\u308b\u3068\u3001\u300cInput your password here\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u3066\u3057\u307e\u3044\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30d5\u30a9\u30fc\u30e0\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u30d6\u30ed\u30b0\u306e\u691c\u7d22\u7a93\uff08\u753b\u9762\u53f3\u4e0a\uff09\u306e\u3088\u3046\u306b\u3001\u30ab\u30fc\u30bd\u30eb\u3092\u5408\u308f\u305b\u308b\u3068\u6587\u5b57\u304c\u6d88\u3048\u308b\u30d5\u30a9\u30fc\u30e0\u306f\u6700\u8fd1\u3088\u304f\u898b\u304b\u3051\u308b\u3002jQuery\u3092\u4f7f\u3063\u3066\u3053\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u3044\u3044\u304b\u3002\u57fa\u672c\u30c6\u30af\u30cb\u30c3\u30af\u3068\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3057\u3066\u304a\u3053\u3046\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[22,23,24],"_links":{"self":[{"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":0,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"wp:attachment":[{"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}