<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>absg</author_name>
  <author_url>https://blog.hatena.ne.jp/absg/</author_url>
  <blog_title>やったこと</blog_title>
  <blog_url>https://absg.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>「img要素」で画像を表示しようとしたら、画像がすでになくなってきて「×」マークが表示されてしまう、こんなことってありますよね。こういうときに、自前で用意した「NOT FOUND!」みたいな画像とすり替えて表示できたら、とっても便利です。jqueryで以下のようなコードを書けば、「hogege_img」クラスのimgが表示エラーとなったとき（errorイベントが発生したとき）、「notfound.jpg」の画像に差し替えることができます。 //画像が表示エラーとなったときに差し替える $(&quot;.hogege_img&quot;).error(function(){ $(this).attr(&quot;src&quot;, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fabsg.hatenablog.com%2Fentry%2F2016%2F08%2F24%2F184607&quot; title=&quot;【jquery】画像が表示エラーとなったときに代わりの画像を表示する！ - やったこと&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>2016-08-24 18:46:07</published>
  <title>【jquery】画像が表示エラーとなったときに代わりの画像を表示する！</title>
  <type>rich</type>
  <url>https://absg.hatenablog.com/entry/2016/08/24/184607</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
