<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kenpoco</author_name>
  <author_url>https://blog.hatena.ne.jp/kenpoco/</author_url>
  <blog_title>on the center line.</blog_title>
  <blog_url>https://kenpoco.hatenadiary.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>最近、会社用のPCのブラウザをやっとIE7にあげたのですが、「スクロールした量が取得できない」という問題にぶつかりました。既知の問題なので、 IE7において座標が正しく取得出来なくなった件 などに詳しく解説がありました。上記のサイトでは、IE6とIE7で処理をわけるという解決策が示されてますが、僕はIE6とIE7で分岐したくなかったので、以下のように対応しました。 var vScroll = document.body.scrollTop + document.documentElement.scrollTop;</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenpoco.hatenadiary.org%2Fentry%2F20080409%2F1207706640&quot; title=&quot; IE7でスクロール量を取得する - on the center line.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-04-09 11:04:00</published>
  <title> IE7でスクロール量を取得する</title>
  <type>rich</type>
  <url>https://kenpoco.hatenadiary.org/entry/20080409/1207706640</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
