{"id":816,"date":"2006-06-30T19:59:29","date_gmt":"2006-06-30T23:59:29","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=816"},"modified":"2006-06-30T19:59:29","modified_gmt":"2006-06-30T23:59:29","slug":"transparent-png-plus-pngfixjs","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2006\/06\/30\/transparent-png-plus-pngfixjs\/","title":{"rendered":"Transparent PNG plus pngfix.js"},"content":{"rendered":"<p>A couple weeks back <a href=\"http:\/\/cephas.net\/blog\/2006\/06\/09\/transparent_png_charts_with_jfreechart.html\">I mentioned<\/a> that I used <a href=\"http:\/\/homepage.ntlworld.com\/bobosola\/index.htm\">this JavaScript hack<\/a> to enable IE to see transparent PNG&#8217;s in the way I wanted them to be seen (you know, <i>with transparency<\/i>).  I should mention that I had to back out that change because <code>pngfix.js<\/code> mucks with the DOM by wrapping the <code>&lt;img...&gt;<\/code> tag in a <code>span<\/code> and then moves the <code>id<\/code> attribute of the image to the span.  Bottom line: if you use <code>pngfix.js<\/code> and then try to manipulate an <code>img<\/code> tag that contains a PNG, you&#8217;ll need to remember that the image element with id = x will not be an image element at runtime, it&#8217;ll be a span that contains an image.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple weeks back I mentioned that I used this JavaScript hack to enable IE to see transparent PNG&#8217;s in the way I wanted them to be seen (you know, with transparency). I should mention that I had to back out that change because pngfix.js mucks with the DOM by wrapping the &lt;img&#8230;&gt; tag in &hellip; <a href=\"https:\/\/cephas.net\/blog\/2006\/06\/30\/transparent-png-plus-pngfixjs\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Transparent PNG plus pngfix.js<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[29],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/816"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=816"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/816\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}