<![CDATA[ [Plugin] PNG-Alpha Transparency for MSIE - My Forums]]> https://forums.modx.com/thread/?thread=49011 <![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=8#dis-post-286393
I know it’s only for IE6 but I have to make sure most browsers are covered. Thanks!]]>
rossco Dec 18, 2007, 08:48 AM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=8#dis-post-286393
<![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=8#dis-post-286392 Quote from: lw-d at Jan 08, 2007, 08:19 PM

Does anyone know if the plugin works with version .95

Thanks
Lee
I just tried it in 0.9.6 RC1 and it works, so I suppose it would work in 0.9.5 also wink]]>
Mproject Mar 07, 2007, 04:23 PM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=8#dis-post-286392
<![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286391
Thanks
Lee]]>
lw-d Jan 08, 2007, 02:19 PM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286391
<![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286390 Quote from: williscool at Dec 02, 2006, 06:21 AM

just in case it hasn’t been answered your css will no longer validate if you use the css method.

regardless of what you do

you html will be fine

if you are as anal as i am though, you gotta use javascript to implemented it so that everything will still validate. If people have javascript disabled and are using ie just put a sign that says they’re missing out wink

Well... yes and no...

You can PHP-script your CSS file to send the funky IE6 transparency code only when the browser viewing the page is IE6, so for all other browsers it will validate (and IE6 won’t complain, of course).

Luckily Microsoft has started pushing IE7 out via Automatic Updates, so this will be less and less of a problem now.]]>
ZAP Dec 02, 2006, 07:40 AM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286390
<![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286389
regardless of what you do

you html will be fine

if you are as anal as i am though, you gotta use javascript to implemented it so that everything will still validate. If people have javascript disabled and are using ie just put a sign that says they’re missing out wink]]>
williscool Dec 02, 2006, 12:21 AM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286389
<![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286388 Only problem with this js method is if javascript is disabled...
Yeah, well you can’t have everything! wink

what I liked about this, was that it is very simple, and it just works.

If you want to see the site I’m using it on, look at:
http://beesnblossoms.com]]>
joshlfisher Nov 22, 2006, 04:35 PM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286388
<![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286387 Thanks for the pointer and fix smiley

Only problem with this js method is if javascript is disabled...
]]>
davidm Nov 22, 2006, 02:57 PM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286387
<![CDATA[Found: Transparent PNG Solution]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286386
I have just found an incredible, simple solution.
Just paste this into your header:

<!--[if gte IE 5.5000]>
<script language="JavaScript">
function correctPNG()
{
   for(var i=0; i<document.images.length; i++)
   {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()

      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText

         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle

         var strNewHTML = "<span " + imgID + imgClass + imgTitle
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;"
             + imgStyle + ";"      + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"

         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->


The URL for the web page is here:

http://www.troozers.com/joomla!/howto/png_fix.html]]>
joshlfisher Nov 22, 2006, 02:04 PM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286386
<![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286385 ) Maybe I’ll do it later. It works for the moment and that’s ok for me.

(/Sorry for losing some apostrophes’’’’)...]]>
qson Sep 03, 2006, 01:12 PM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286385
<![CDATA[Re: [Plugin] PNG-Alpha Transparency for MSIE]]> https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286384 doze Aug 31, 2006, 11:54 AM https://forums.modx.com/thread/49011/plugin-png-alpha-transparency-for-msie?page=7#dis-post-286384