{"id":1082,"date":"2011-09-01T03:29:03","date_gmt":"2011-08-31T18:29:03","guid":{"rendered":"http:\/\/codaholic.org\/?p=1082"},"modified":"2011-09-01T03:30:45","modified_gmt":"2011-08-31T18:30:45","slug":"jquery%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e4%bd%8d%e7%bd%ae%e3%82%92%e5%88%b6%e5%be%a1%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/codaholic.org\/?p=1082","title":{"rendered":"[jQuery]\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u5236\u5fa1\u3059\u308b"},"content":{"rendered":"<p>HTML\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u4e0a\u90e8\u306b&lt;a name=&#8221;top&#8221; id=&#8221;top&#8221;>&lt;\/a&gt;\u306a\u3069\u3068\u7f6e\u3044\u3066\u3001&lt;a href=&#8221;#top&#8221;&gt;\u4e0a\u306b\u623b\u308b&lt;\/a&gt;\u3068\u3084\u308b\u3068\u753b\u9762\u306e\u6700\u4e0a\u90e8\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u30ea\u30f3\u30af\u3092\u7f6e\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u52d5\u4f5c\u3092jQuery\u3067\u4ee3\u66ff\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4e0b\u8a18\u306ejQuery\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u3068\u3001id\u306e\u300cswitch\u300d\u304c\u4ed8\u3051\u3089\u308c\u305f\u8981\u7d20\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u308b\u3068\u30da\u30fc\u30b8\u306e\u6700\u4e0a\u90e8\u3078\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u6700\u4e0a\u90e8\u306ba\u30bf\u30b0\u3092\u7f6e\u304b\u306a\u304f\u3066\u3082\u826f\u3044\u306e\u3067\u30e1\u30ea\u30c3\u30c8\u306f\u5927\u304d\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>scrollTop\u30e1\u30bd\u30c3\u30c9\u306f\u5f15\u6570\u304c\u7a7a\u3060\u3068\u73fe\u5728\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u3092\u8fd4\u3057\u3066\u304f\u308c\u307e\u3059\u304c\u3001\u6570\u5024\u3092\u5f15\u6570\u306b\u6e21\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u305d\u306e\u4f4d\u7f6e\u307e\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[javascript]<br \/>\n$(function(){<br \/>\n\t$(&#8216;#switch&#8217;).click(function(){<br \/>\n\t\t$(&#8216;body&#8217;).scrollTop(0);<br \/>\n\t});<br \/>\n});<br \/>\n[\/javascript]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u4e0a\u90e8\u306b&lt;a name=&#8221;top&#8221; id=&#8221;top&#8221;>&lt;\/a&gt;\u306a\u3069\u3068\u7f6e\u3044\u3066\u3001&lt;a href=&#8221;#top&#8221;&#038; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[5,6],"tags":[245,246],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gd1W-hs","_links":{"self":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1082"}],"collection":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1082"}],"version-history":[{"count":3,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1082\/revisions"}],"predecessor-version":[{"id":1084,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/1082\/revisions\/1084"}],"wp:attachment":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}