{"id":126,"date":"2010-05-17T21:42:46","date_gmt":"2010-05-17T12:42:46","guid":{"rendered":"http:\/\/picxpic.com\/?p=126"},"modified":"2010-05-17T21:42:46","modified_gmt":"2010-05-17T12:42:46","slug":"%e3%80%90javascript%e3%80%91jquery%e3%82%92%e3%81%a4%e3%81%8b%e3%81%a3%e3%81%9f%e4%b8%80%e5%ae%9a%e6%99%82%e9%96%93%e3%81%a7%e7%94%bb%e5%83%8f%e3%82%92%e5%88%87%e3%82%8a%e6%9b%bf%e3%81%88%e3%82%8b-2","status":"publish","type":"post","link":"https:\/\/picxpic.com\/?p=126","title":{"rendered":"\u3010Javascript\u3011jQuery\u3092\u3064\u304b\u3063\u305f\u4e00\u5b9a\u6642\u9593\u3067\u753b\u50cf\u3092\u5207\u308a\u66ff\u3048\u308b\u30b9\u30af\u30ea\u30d7\u30c8\uff08\u30b9\u30af\u30ed\u30fc\u30eb\uff09"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-12\" title=\"010248-3d-glossy-blue-orb-icon-animals-animal-hippo3-sc22\" src=\"https:\/\/picxpic.com\/wp-content\/uploads\/2010\/05\/010248-3d-glossy-blue-orb-icon-animals-animal-hippo3-sc22.jpg\" alt=\"\" width=\"100\" height=\"100\" \/>\u4e00\u5b9a\u6642\u9593\u304c\u305f\u3064\u3068\u753b\u50cf\u304c\u5207\u308a\u66ff\u3048\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7b2c\u4e8c\u5f3e\u3002\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u753b\u50cf\u304c\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fjQuery\u306b\u52a0\u3048\u3001jquery.easing\u3068\u3044\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u304d\u3092\u30a4\u30b1\u3066\u308b\u52d5\u304d\u306b\u5909\u3048\u308c\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002<\/p>\n<p>\u7e26\u30d0\u30fc\u30b8\u30e7\u30f3<br \/>\n<a href=\"https:\/\/picxpic.com\/sample\/20100517timeChangeGallery02\/\" target=\"_blank\" rel=\"noopener\">\u30b5\u30f3\u30d7\u30eb\u30c7\u30e2\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/a><br \/>\n<a href=\"https:\/\/picxpic.com\/sample\/20100517timeChangeGallery02.zip\" target=\"_blank\" rel=\"noopener\">\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3053\u3061\u3089\u304b\u3089\u3002<\/a><\/p>\n<p>\u6a2a\u30d0\u30fc\u30b8\u30e7\u30f3<br \/>\n<a href=\"https:\/\/picxpic.com\/sample\/20100517timeChangeGallery03\/\" target=\"_blank\" rel=\"noopener\">\u30b5\u30f3\u30d7\u30eb\u30c7\u30e2\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/a><br \/>\n<a href=\"https:\/\/picxpic.com\/sample\/20100517timeChangeGallery03.zip\" target=\"_blank\" rel=\"noopener\">\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3053\u3061\u3089\u304b\u3089\u3002<\/a><\/p>\n<p>\u7e26\u3082\u6a2a\u3082\u307b\u3068\u3093\u3069\u4e2d\u8eab\u306f\u5909\u308f\u308a\u307e\u305b\u306c\u3002<br \/>\n[html]<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=utf-8&quot; \/&gt;<br \/>\n&lt;title&gt;\u7121\u984c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8&lt;\/title&gt;<br \/>\n&lt;link href=&quot;css\/recet.css&quot; rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; media=&quot;all&quot; \/&gt;<br \/>\n&lt;link href=&quot;css\/layout.css&quot; rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; media=&quot;all&quot; \/&gt;<br \/>\n&lt;script src=&quot;js\/jquery.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt;<br \/>\n&lt;script src=&quot;js\/jquery.easing.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt;<br \/>\n&lt;script src=&quot;js\/loading.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt;<br \/>\n&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<br \/>\n&lt;div&gt;<br \/>\n\t&lt;ul id=&quot;gallery&quot;&gt;<br \/>\n\t\t&lt;li&gt;&lt;img src=&quot;img\/1.jpg&quot; \/&gt;&lt;\/li&gt;<br \/>\n\t\t&lt;li&gt;&lt;img src=&quot;img\/2.jpg&quot; \/&gt;&lt;\/li&gt;<br \/>\n\t\t&lt;li&gt;&lt;img src=&quot;img\/3.jpg&quot; \/&gt;&lt;\/li&gt;<br \/>\n\t&lt;\/ul&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n[\/html]<\/p>\n<p>li\u306e\u90e8\u5206\u306b\u753b\u50cf\u3092\u4e00\u3064\u305a\u3064\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u3066\u304f\u3060\u3055\u3044\u306a\u3002\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u306f1\u3068\u304b2\u3068\u304b\u9023\u756a\u3058\u3083\u306a\u304d\u3083\u30c0\u30e1\u3088\u3002<\/p>\n<p>[css]<br \/>\n#gallery{<br \/>\n\twidth:600px;<br \/>\n\theight:480px;<br \/>\n}<\/p>\n<p>#gallery li{<br \/>\n\tline-height:0px;<br \/>\n\tposition: relative;<br \/>\n\tleft:0<br \/>\n}<br \/>\n[\/css]<\/p>\n<p>[js]<br \/>\n\/\/\u753b\u50cf\u3092\u5207\u308a\u66ff\u3048\u308b\u901f\u3055<br \/>\nimgChangeSpeed = 2000;<\/p>\n<p>\/\/\u753b\u50cf\u306e\u7e26\u5e45<br \/>\nimgHeight = 480;<\/p>\n<p>\/\/\u753b\u50cf\u306e\u6a2a\u5e45<br \/>\nimgWidth = 600;<\/p>\n<p>\/\/\u753b\u50cf\u306e\u6570<br \/>\nimgInt = 3;<\/p>\n<p>\/\/\u30da\u30fc\u30b8\u5909\u7570\u306e\u30bf\u30a4\u30d7<br \/>\ntype = &quot;easeInOutBack&quot;;<\/p>\n<p>var move = &quot;-&quot; + imgHeight + &quot;px&quot;;<br \/>\nvar maximun = &quot;-&quot; + imgHeight * imgInt;<\/p>\n<p>$(function(){<\/p>\n<p>\t\/\/\u4e00\u5b9a\u6642\u9593\u6bce\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u547c\u3073\u51fa\u3059<br \/>\n\tvar t = setInterval(loadImg, imgChangeSpeed);<\/p>\n<p>\t\/\/\u547c\u3073\u51fa\u3055\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8<br \/>\n\tfunction loadImg(){<\/p>\n<p>\t\tvar movement = $(&quot;li&quot;).css(&#8216;top&#8217;);<br \/>\n\t\tvar movement = parseInt(movement.replace(&quot;px&quot;,&quot;&quot;)) &#8211; imgHeight;<\/p>\n<p>\t\tif(movement &gt; maximun){<br \/>\n\t\t\t$(&quot;li&quot;).animate({&#8216;top&#8217;:movement},{queue:false, duration:1000, easing: type});<br \/>\n\t\t}<br \/>\n\t\telse{<br \/>\n\t\t\t$(&quot;li&quot;).animate({&#8216;top&#8217;:\t0},\t1000);<br \/>\n\t\t}<br \/>\n\t}<br \/>\n});<br \/>\n[\/js]<br \/>\n\u753b\u50cf\u306e\u7e26\u5e45\u3068\u6a2a\u5e45\u3068\u5207\u308a\u66ff\u3048\u308b\u753b\u50cf\u306e\u6570\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u3066\u306d\u2606<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\/\/\u30da\u30fc\u30b8\u5909\u7570\u306e\u30bf\u30a4\u30d7\u306e\u3068\u3053\u308d\u3092<a href=\"http:\/\/semooh.jp\/jquery\/cont\/doc\/easing\/\" target=\"_blank\" rel=\"noopener\">jQuery\u65e5\u672c\u8a9e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306e\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u306e\u9ec4\u8272\u306e\u68d2\u306e\u4e0a\u306b\u66f8\u3044\u3066\u3042\u308b\u305d\u308c\u305e\u308c\u306e\u540d\u524d\u306b\u5909\u3048\u3066\u3042\u3052\u308b\u3068\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u52d5\u304d\u304c\u5909\u308f\u308a\u307e\u3063\u305b\u3002<\/p>\n<p>\u3053\u308c\u3067Flash\u4f7f\u308f\u306a\u304f\u3066\u30a4\u30a4\u30cd\uff01\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u30d0\u30ab\u3067\u304b\u3044\u753b\u50cf\u4f7f\u3063\u3066\u308b\u3051\u308c\u3069\u3001\u3053\u308c\u3092\u6a2a\u9577\u306e\u753b\u50cf\u306b\u3057\u3066\u30b5\u30a4\u30c8\u306e\u30e1\u30a4\u30f3\u753b\u50cf\u90e8\u5206\u306b\u5165\u308c\u3061\u3083\u3048\u3070\u3001\u3044\u3044\u611f\u3058\u306b\u306a\u308b\u3093\u3058\u3083\u306a\u30fc\u3044\uff1f\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u306e\u753b\u50cf\u5207\u308a\u66ff\u3048\u305f\u308a\u3057\u3066\u3055\u30fc\uff01<\/p>\n<p>\u3067\u306f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u5b9a\u6642\u9593\u304c\u305f\u3064\u3068\u753b\u50cf\u304c\u5207\u308a\u66ff\u3048\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7b2c\u4e8c\u5f3e\u3002\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u753b\u50cf\u304c\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002 \u4eca\u56de\u306fjQuery\u306b\u52a0\u3048\u3001jquery.easing\u3068\u3044\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u304d\u3092\u30a4\u30b1\u3066\u308b\u52d5\u304d\u306b\u5909\u3048\u308c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jinr_url_youtube":"","_jinr_pip_youtube":false,"_jinr_time_youtube":"","_jinr_thumb_youtube":"","_jinr_media_youtube":"","_jinr_category_edit":false,"_jinr_category":"","_jinr_title_display":false,"_jinr_snsbutton_display":false,"_jinr_ads_display":false,"_jinr_thumbnail_display":false,"_jinr_profile_display":false,"_jinr_representations_display":false,"_jinr_relatedpost_display":false,"_jinr_sidebar1col_display":false,"_jinr_sidebar2col_display":false,"_jinr_seotitle_display":"","_jinr_description_display":"","_jinr_keyword_display":"","_jinr_hastag_display":"","_jinr_canonical_display":"","_jinr_noindex_display":false,"_jinr_paidpost":false,"_jinr_paidpost_product_id":"","_jinr_headtag_article":"","footnotes":""},"categories":[6],"tags":[25],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-program","tag-jquery"],"views":"40","_links":{"self":[{"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/picxpic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=126"}],"version-history":[{"count":0,"href":"https:\/\/picxpic.com\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions"}],"wp:attachment":[{"href":"https:\/\/picxpic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picxpic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picxpic.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}