{"id":1614,"date":"2011-06-16T00:07:08","date_gmt":"2011-06-15T15:07:08","guid":{"rendered":"http:\/\/apr20.net\/?p=1614"},"modified":"2011-06-16T00:07:08","modified_gmt":"2011-06-15T15:07:08","slug":"jquery%e3%81%a7%e3%82%a2%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%82%aa%e3%83%b3%e3%83%91%e3%83%8d%e3%83%ab","status":"publish","type":"post","link":"https:\/\/apr20.net\/?p=1614","title":{"rendered":"jQuery\u3067\u30a2\u30b3\u30fc\u30c7\u30a3\u30aa\u30f3\u30d1\u30cd\u30eb"},"content":{"rendered":"<p>jQuery\u3067\u30a2\u30b3\u30fc\u30c7\u30a3\u30aa\u30f3\u30d1\u30cd\u30eb\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u30b5\u30f3\u30d7\u30eb\u3082\u8a2d\u7f6e\u3057\u3066\u307e\u3059\u306e\u3067\u3001\u52d5\u4f5c\u306e\u78ba\u8a8d\u304c\u51fa\u6765\u307e\u3059\u3002<!--more--><\/p>\n<div>\n<script type=\"text\/javascript\">\njQuery(function() {\n  jQuery(\"dd:not(:first)\").css(\"display\",\"none\");\n  jQuery(\"dl dt\").click(function(){\n    if(jQuery(\"+dd\",this).css(\"display\")==\"none\"){\n       jQuery(this).siblings(\"dd\").slideUp(\"slow\");\n       jQuery(\"+dd\",this).slideDown(\"slow\");\n    }\n  });\n});\n<\/script>\n<\/div>\n<h3>\u30b5\u30f3\u30d7\u30eb<\/h3>\n<blockquote>\n<dl>\n<dt>\u30bf\u30a4\u30c8\u30eb\uff11<\/dt>\n<dd>\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206<\/dd>\n<dt>\u30bf\u30a4\u30c8\u30eb\uff12<\/dt>\n<dd>\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206<\/dd>\n<dt>\u30bf\u30a4\u30c8\u30eb\uff13<\/dt>\n<dd>\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206\u672c\u5206<\/dd>\n<\/dl>\n<\/blockquote>\n<p>\u2191\u9589\u3058\u3066\u3044\u308b\u30bf\u30a4\u30c8\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u672c\u6587\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>\u8a2d\u7f6e\u30b3\u30fc\u30c9<\/h4>\n<p><strong>javascript<\/strong><br \/>\n\u307e\u305a\u306f\u3001html\u30bd\u30fc\u30b9\u306ehead\u5185\u3067jquery\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<br \/>\n[php]&lt;script type=&#8217;text\/javascript&#8217; src=&#8217;jquery-1.6.1.min.js&#8217;&gt;&lt;\/script&gt;<br \/>\n[\/php]<\/p>\n<p>\u4eca\u56de\u306e\u52d5\u4f5c\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u3092html\u30bd\u30fc\u30b9\u5185\u306b\u9069\u5f53\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002<br \/>\n[php]<br \/>\n&lt;script type=&quot;text\/javascript&quot;&gt;<br \/>\njQuery(function() {<br \/>\n  jQuery(&quot;dd:not(:first)&quot;).css(&quot;display&quot;,&quot;none&quot;);<br \/>\n  jQuery(&quot;dl dt&quot;).click(function(){<br \/>\n    if(jQuery(&quot;+dd&quot;,this).css(&quot;display&quot;)==&quot;none&quot;){<br \/>\n       jQuery(this).siblings(&quot;dd&quot;).slideUp(&quot;slow&quot;);<br \/>\n       jQuery(&quot;+dd&quot;,this).slideDown(&quot;slow&quot;);<br \/>\n    }<br \/>\n  });<br \/>\n});<br \/>\n&lt;\/script&gt;[\/php]<\/p>\n<p><strong>html\u30bd\u30fc\u30b9<\/strong><\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30bd\u30fc\u30b9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002[php]<br \/>\n&lt;dl&gt;<br \/>\n   &lt;dt&gt;\u30c6\u30b9\u30c8&lt;\/dt&gt;<br \/>\n   &lt;dd&gt;aaaaaaaaaaaaaaaaaaa&lt;\/dd&gt;<br \/>\n   &lt;dt&gt;\u30c6\u30b9\u30c8&lt;\/dt&gt;<br \/>\n   &lt;dd&gt;aaaaaaaaaaaaaaaaaaa&lt;\/dd&gt;<br \/>\n   &lt;dt&gt;\u30c6\u30b9\u30c8&lt;\/dt&gt;<br \/>\n   &lt;dd&gt;aaaaaaaaaaaaaaaaaaa&lt;\/dd&gt;<br \/>\n&lt;\/dl&gt;<br \/>\n[\/php]<\/p>\n<p><strong>css<\/strong><\/p>\n<p>[php]&lt;style type=&quot;text\/css&quot;&gt;<br \/>\n* {<br \/>\nmargin:0px;<br \/>\npadding:0px;<br \/>\n}<br \/>\ndl{<br \/>\nwidth:400px;<br \/>\nmargin:50px auto;<br \/>\n}<\/p>\n<p>dl dt {<br \/>\nbackground:#eeeeee;<br \/>\nborder-bottom:1px solid #dddddd;<br \/>\ncursor:pointer;<br \/>\n}<br \/>\ndl dd {<br \/>\nborder:1px solid #cccccc;<br \/>\nborder-top:none;<br \/>\nheight:100px;<br \/>\n}<br \/>\n&lt;\/style&gt;[\/php]<\/p>\n<blockquote><p>\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u30bf\u30a4\u30c8\u30eb\uff11\u306e\u672c\u6587\u304c\u6700\u521d\u306b\u958b\u3044\u305f\u72b6\u614b\u3067\u3059\u304c\u3001javascript\u5185\u306e<br \/>\n(&#8220;dd:not(:first)&#8221;)\u3068\u306a\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u3092<br \/>\n(&#8220;dd&#8221;)\u3068\u3059\u308b\u3068\u3001\u6700\u521d\u306f\u5168\u3066\u304c\u9589\u3058\u3089\u308c\u3066\u304a\u308a\u3001\u30af\u30ea\u30c3\u30af\u3055\u308c\u3066\u521d\u3081\u3066\u3001\u672c\u6587\u304c\u8aad\u3081\u308b\u3068\u3044\u3063\u305f\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>jQuery\u3067\u30a2\u30b3\u30fc\u30c7\u30a3\u30aa\u30f3\u30d1\u30cd\u30eb\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002 \u30b5\u30f3\u30d7\u30eb\u3082\u8a2d\u7f6e\u3057\u3066\u307e\u3059\u306e\u3067&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1614","post","type-post","status-publish","format-standard","hentry","category-jquery"],"_links":{"self":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/1614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1614"}],"version-history":[{"count":0,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/1614\/revisions"}],"wp:attachment":[{"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}