{"id":2932,"date":"2012-05-26T00:10:21","date_gmt":"2012-05-25T15:10:21","guid":{"rendered":"http:\/\/pc.beginners-luck.net\/pcwp\/?p=2932"},"modified":"2012-05-29T22:18:43","modified_gmt":"2012-05-29T13:18:43","slug":"jquery-navigation","status":"publish","type":"post","link":"https:\/\/pc.beginners-luck.net\/pcwp\/2012\/05\/26\/jquery-navigation.html","title":{"rendered":"J Query\u3067\u3071\u305f\u3071\u305f\u958b\u304f\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b"},"content":{"rendered":"<p>\u305f\u304f\u3055\u3093\u306e\u968e\u5c64\u304c\u3042\u308b\u30b5\u30a4\u30c8\u306b\u304b\u304b\u308f\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u3001\u898b\u7fd2\u3002\u3069\u304d\u3069\u304d\u3001\u308f\u304f\u308f\u304f\u3068\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u958b\u59cb\u3002<br \/>\n\u3068\u3001\u6700\u521d\u306b\u3076\u3061\u5f53\u305f\u3063\u305f\u96e3\u984c\u3068\u306f\u3001\u4f55\u3060\u3044\uff1f\u3068\u3068\u307c\u3051\u308b\u6687\u306a\u304f\u51fa\u304f\u308f\u3057\u307e\u3057\u305f\u3002\u4f55\u984c\u3082\u306e\u96e3\u984c\u3002\u305d\u306e\u7b2c\u4e00\u5f3e\u3067\u3059\u3045\u3002<\/p>\n<p>\u3064\u307e\u30fc\u308a\u306f\u3001\u305f\u304f\u3055\u3093\u306e\u30da\u30fc\u30b8\u304c\u3042\u308b\u304b\u3089\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3082\u3001\u591a\u6bb5\u968e\u306b\u2026\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3059\u308b\u3068\u3001\u305d\u306e\u5b50\u30ab\u30c6\u30b4\u30ea\u30fc\u304c\u3001\u3071\u305f\u3071\u305f\u3068\u51fa\u73fe\u3059\u308b\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u306d\u3001\u3068\u306e\u6307\u4ee4\u3067\u3059\u3002<\/p>\n<p>\u306a\u3093\u3068\u306a\u304f\u3001JQuery\u3067\u3067\u304d\u305d\u3046\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u5fc5\u6b7b\u3067\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u3067\u3001\u3042\u3068\u306fCSS\u3067\u3059\u304c\u3001\u672c\u65e5\u306e\u6307\u4ee4\u306f\u3001\u4e0a\u306e\u968e\u5c64\u306f\u3001\u30ad\u30ec\u30a4\u76ee\u306b\u307f\u305b\u305f\u3044\u306e\u3067\u3001\u753b\u50cf\u3092\u80cc\u666f\u306b\u7f6e\u3044\u3066\u3001\u7f6e\u63db\u3057\u305f\u30dc\u30bf\u30f3\u3002\u3067\u3082\u3001\u4e0b\u306e\u968e\u5c64\u306f\u3001\u3069\u3093\u3069\u3093\u5185\u5bb9\u304c\u5909\u66f4\u306b\u306a\u308b\u304b\u3089\u3001\u3044\u3061\u3044\u3061\u753b\u50cf\u306a\u3093\u304b\u4f5c\u3063\u3066\u308b\u30d2\u30de\u306a\u3044\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u3067\u5bfe\u5fdc\u306d\u3001\u3063\u3066\u3053\u3068\u306b\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001CSS\u3092\u3053\u306d\u304f\u308a\u56de\u3057\u3066\u3001\u306a\u3093\u3068\u304b\u3067\u304d\u3042\u304c\u308a\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u306e\u3067\u3059\u3002\u4eca\u65e5\u306f\u3001HTML\u3082\u3001CSS\u3082\u3001Java&nbsp;Script\uff08JQuery)\u3082HTML\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u66f8\u3044\u3061\u3083\u3044\u307e\u3057\u305f\u3002\u30c6\u30cc\u30ad\u30c0\u30a1\u3002<\/p>\n<p>HTML&nbsp;CSS&nbsp;JavaScript(JQuery)<\/p>\n<pre><code>&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt;<br>\r\n&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;&gt;<br>\r\n&lt;head&gt;<br>\r\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=utf-8&quot; \/&gt;<br>\r\n&lt;meta http-equiv=&quot;content-style-type&quot; content=&quot;text\/css&quot; \/&gt;<br>\r\n&lt;meta http-equiv=&quot;content-script-type&quot; content=&quot;text\/javascript&quot; \/&gt;<br>\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;jstest\/js\/jquery-1.7.1.min.js&quot;&gt;&lt;\/script&gt;<br>\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\/\/&lt;![CDATA[<br>\r\n$(function(){<br>\r\n$(&quot;ul.sub&quot;).hide();<br>\r\n$(&quot;ul.navi li&quot;).hover(function(){<br>\r\n$(&quot;ul:not(:animated)&quot;,this).slideDown(&quot;fast&quot;);<br>\r\n},<br>\r\nfunction(){<br>\r\n$(&quot;ul&quot;,this).slideUp(&quot;fast&quot;);<br>\r\n});<br>\r\n});<br>\r\n\/\/]]&gt;<br>\r\n&lt;\/script&gt;<br>\r\n&lt;title&gt;J Query\u3067\u3071\u305f\u3071\u305f\u30e1\u30cb\u30e5\u30fc&lt;\/title&gt;<br>\r\n&lt;style type=&quot;text\/css&quot;&gt;<br>\r\n*{<br>\r\npadding:0;<br>\r\nmargin:0;<br>\r\n}<br>\r\ndiv#wrap {<br>\r\nwidth:600px;<br>\r\nmargin:0 auto;<br>\r\n}<br>\r\nul.navi li {<br>\r\nfloat:left;<br>\r\nwidth:150px;<br>\r\nheight:49px;<br>\r\nlist-style-type:none;<br>\r\ntext-indent:-9999px;<br>\r\n}<br>\r\na{<br>\r\ndisplay:block;<br>\r\nwidth:100%;<br>\r\nheight:100%;<br>\r\nborder:none;<br>\r\n}<br>\r\nul.navi {<br>\r\nzoom:1;<br>\r\n}<br>\r\nul.navi:after{<br>\r\nheight:0;<br>\r\nvisibility:hidden;<br>\r\ncontent:&quot;.&quot;;<br>\r\ndisplay:block;<br>\r\nclear:both;<br>\r\n}<br>\r\n#b01 a {<br>\r\nbackground-image:url(img\/btn01.jpg);<br>\r\nbackground-position:0 0;<br>\r\n}<br>\r\n#b02 a {<br>\r\nbackground-image:url(img\/btn02.jpg);<br>\r\nbackground-position:0 0;<br>\r\n}<br>\r\n#b03 a {<br>\r\nbackground-image:url(img\/btn03.jpg);<br>\r\nbackground-position:0 0;<br>\r\n}<br>\r\n#b04 a {<br>\r\nbackground-image:url(img\/btn04.jpg);<br>\r\nbackground-position:0 0;;<br>\r\n}<br>\r\n#b01 a:hover {<br>\r\nbackground-position:0 -50px;<br>\r\n}<br>\r\n#b02 a:hover {<br>\r\nbackground-position:0 -50px;<br>\r\n}<br>\r\n#b03 a:hover {<br>\r\nbackground-position:0 -50px;<br>\r\n}<br>\r\n#b04 a:hover {<br>\r\nbackground-position:0 -50px;<br>\r\n}<br>\r\nul.navi li ul.sub{<br>\r\nposition:absolute;<br>\r\n}<br>\r\nul li ul.sub li{<br>\r\nheight:30px;<br>\r\nfloat:none;<br>\r\n}<br>\r\nul li#b01 ul li a{<br>\r\nbackground-image:none;<br>\r\nbackground-color:#eee;<br>\r\ntext-indent:0;<br>\r\ntext-align:center;<br>\r\ntext-decoration:none;<br>\r\nline-height:30px;<br>\r\nborder:1px solid #999;<br>\r\nwidth:148px;<br>\r\ncolor:#666;<br>\r\n}<br>\r\nul li#b02 ul li a{<br>\r\nbackground-image:none;<br>\r\nbackground-color:#eee;<br>\r\ntext-indent:0;<br>\r\ntext-align:center;<br>\r\ntext-decoration:none;<br>\r\nline-height:30px;<br>\r\nborder:1px solid #999;<br>\r\nwidth:148px;<br>\r\ncolor:#666;<br>\r\n}<br>\r\nul li#b03 ul li a{<br>\r\nbackground-image:none;<br>\r\nbackground-color:#eee;<br>\r\ntext-indent:0;<br>\r\ntext-align:center;<br>\r\ntext-decoration:none;<br>\r\nline-height:30px;<br>\r\nborder:1px solid #999;<br>\r\nwidth:148px;<br>\r\ncolor:#666;<br>\r\n}<br>\r\nul li#b04 ul li a{<br>\r\nbackground-image:none;<br>\r\nbackground-color:#eee;<br>\r\ntext-indent:0;<br>\r\ntext-align:center;<br>\r\ntext-decoration:none;<br>\r\nline-height:30px;<br>\r\nborder:1px solid #999;<br>\r\nwidth:148px;<br>\r\ncolor:#666;<br>\r\n}<br>\r\nul li#b01 ul li a:hover{<br>\r\nbackground-color:#999;<br>\r\ncolor:#fff;<br>\r\n}<br>\r\nul li#b02 ul li a:hover{<br>\r\nbackground-color:#999;<br>\r\ncolor:#fff;<br>\r\n}<br>\r\nul li#b03 ul li a:hover{<br>\r\nbackground-color:#999;<br>\r\ncolor:#fff;<br>\r\n}<br>\r\nul li#b04 ul li a:hover{<br>\r\nbackground-color:#999;<br>\r\ncolor:#fff;<br>\r\n}<br>\r\n&lt;\/style&gt;<br>\r\n&lt;\/head&gt;<br>\r\n&lt;body&gt;<br>\r\n&lt;div id=&quot;wrap&quot;&gt;<br>\r\n&lt;ul class=&quot;navi&quot;&gt;<br>\r\n&lt;li id=&quot;b01&quot;&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f1\u53f7&lt;\/a&gt;<br>\r\n&lt;ul class=&quot;sub&quot;&gt;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f1\u53f7\u306e1\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f1\u53f7\u306e2\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f1\u53f7\u306e3\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;\/ul&gt;<br>\r\n&lt;\/li&gt;<br>\r\n&lt;li id=&quot;b02&quot;&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f2\u53f7&lt;\/a&gt;<br>\r\n&lt;ul class=&quot;sub&quot;&gt;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f2\u53f7\u306e1\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f2\u53f7\u306e2\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f2\u53f7\u306e3\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;\/ul&gt;<br>\r\n&lt;\/li&gt;<br>\r\n&lt;li id=&quot;b03&quot;&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f3\u53f7&lt;\/a&gt;<br>\r\n&lt;ul class=&quot;sub&quot;&gt;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f3\u53f7\u306e1\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f3\u53f7\u306e2\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f3\u53f7\u306e3\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;\/ul&gt;<br>\r\n&lt;\/li&gt;<br>\r\n&lt;li id=&quot;b04&quot;&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f4\u53f7&lt;\/a&gt;<br>\r\n&lt;ul class=&quot;sub&quot;&gt;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f4\u53f7\u306e1\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f4\u53f7\u306e2\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;li&gt;&lt;a href=&quot;#&quot;&gt;\u3071\u305f\u3071\u305f4\u53f7\u306e3\u53f7&lt;\/a&gt;&lt;\/li&gt;<br>\r\n&lt;\/ul&gt;<br>\r\n&lt;\/li&gt;<br>\r\n&lt;\/ul&gt;<br>\r\n&lt;\/div&gt;<br>\r\n&lt;\/body&gt;<br>\r\n&lt;\/html&gt;<br><\/code><\/pre>\n<p><a href=\"http:\/\/pc.beginners-luck.net\/csstest\/patapata.html\" target=\"_blank\">\u30b5\u30f3\u30d7\u30eb\u306f\u3053\u3061\u3089<\/a><\/p>\n<p>\u3069\u3046\u304b\u3057\u3089\u3093\u3002\u3069\u304d\u3069\u304d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305f\u304f\u3055\u3093\u306e\u968e\u5c64\u304c\u3042\u308b\u30b5\u30a4\u30c8\u306b\u304b\u304b\u308f\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u3001\u898b\u7fd2\u3002\u3069\u304d\u3069\u304d\u3001\u308f\u304f\u308f\u304f\u3068\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u958b\u59cb\u3002 \u3068\u3001\u6700\u521d\u306b\u3076\u3061\u5f53\u305f\u3063\u305f\u96e3\u984c\u3068\u306f\u3001\u4f55\u3060\u3044\uff1f\u3068\u3068\u307c\u3051\u308b\u6687\u306a\u304f\u51fa\u304f\u308f\u3057\u307e\u3057\u305f\u3002\u4f55\u984c\u3082\u306e\u96e3\u984c\u3002\u305d\u306e\u7b2c\u4e00\u5f3e\u3067\u3059\u3045\u3002 \u3064\u307e\u30fc\u308a\u306f\u3001\u305f\u304f\u3055 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,11,1],"tags":[],"_links":{"self":[{"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/posts\/2932"}],"collection":[{"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/comments?post=2932"}],"version-history":[{"count":10,"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/posts\/2932\/revisions"}],"predecessor-version":[{"id":3011,"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/posts\/2932\/revisions\/3011"}],"wp:attachment":[{"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/media?parent=2932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/categories?post=2932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pc.beginners-luck.net\/pcwp\/wp-json\/wp\/v2\/tags?post=2932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}