{"id":796,"date":"2010-11-02T13:45:10","date_gmt":"2010-11-02T17:45:10","guid":{"rendered":"http:\/\/www.blizzarddigital.com\/blog\/?p=796"},"modified":"2011-11-16T18:18:34","modified_gmt":"2011-11-16T22:18:34","slug":"valid-flash-embed-and-preloaders-revisited","status":"publish","type":"post","link":"https:\/\/www.blizzarddigital.com\/blog\/valid-flash-embed-and-preloaders-revisited\/","title":{"rendered":"Valid Flash Embed and Preloaders Episode V: Internet Explorer Strikes Back"},"content":{"rendered":"<p>If you saw my previous post on <a href=\"\/valid-flash-embed-and-preloaders\/\">valid Flash embed while maintaining preload functionality<\/a> and used it, be warned: when the user does not have Flash, a lovely <code>&lt;![endif]--&gt;<\/code> will appear in IE where the Flash movie would normally be. The only way around it I&#8217;ve found is to actually duplicate <em>everything<\/em> from the opening <code>object<\/code> tag to the closing one so there is one each for IE and Firefox. For example:<\/p>\n<pre>&lt;!--[if !IE]&gt;--&gt;\r\n&lt;object data=\"movie.swf\" type=\"application\/x-shockwave-flash\" width=\"725\" height=\"235\"&gt;\r\n\t&lt;param name=\"movie\" value=\"movie.swf\" \/&gt;\r\n&lt;\/object&gt;\r\n&lt;!--&lt;![endif]--&gt;\r\n&lt;!--[if IE]&gt;\r\n&lt;object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"725\" height=\"235\"&gt;\r\n\t&lt;param name=\"movie\" value=\"movie.swf\" \/&gt;\r\n&lt;\/object&gt;\r\n&lt;![endif]--&gt;<\/pre>\n<p>Definitely a pain, but I&#8217;ve found no other way around it.<\/p>\n<p>Also in my search for a solution, I discovered that our old pal Internet Explorer does not let you append anything but <code>param<\/code> elements to <code>object<\/code> elements in Javascript. That was pretty frustrating. Don&#8217;t try that. It doesn&#8217;t work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you saw my previous post on valid Flash embed while maintaining preload functionality and used it, be warned: when the user does not have Flash, a lovely &lt;![endif]&#8211;&gt; will appear in IE where the Flash movie would normally be. The only way around it I&#8217;ve found is to actually duplicate everything from the opening [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[170,151,167,36,174,25,183,19],"class_list":["post-796","post","type-post","status-publish","format-standard","hentry","category-web-standards","tag-embed","tag-flash","tag-internet-explorer","tag-javascript","tag-preload","tag-web-development","tag-web-standards","tag-xhtml"],"_links":{"self":[{"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/posts\/796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/comments?post=796"}],"version-history":[{"count":12,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/posts\/796\/revisions"}],"predecessor-version":[{"id":976,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/posts\/796\/revisions\/976"}],"wp:attachment":[{"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/media?parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/categories?post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blizzarddigital.com\/blog\/wp-json\/wp\/v2\/tags?post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}