M
Martin Eyles
I am trying to make image alpha transparency work in IE6. I was hoping
<img src="Graphics/TransparentLogo.png" width="249" height="42">
would work, but it doesn't. After looking around I found the work around
<div
style="FILTERrogidXImageTransform.Microsoft.AlphaImageLoader(src='Graphi
cs/LineViewTransparentLogo.png');WIDTH:249px;HEIGHT:42px">
<img src="Graphics/TransparentLogo.png" width="249" height="42"
style="FILTER:Alpha(opacity=0)">
</div>
which works perfectly, but is very ugly. I was hoping that by using the
asp:image tag, I would output the ugly version to IE6, and the neat version
to other browsers. I tried
<asp:image width="249" height="42" imageurl="Graphics/TransparentLogo.png"
alternatetext="LineViewT" runat="server" id="Image1">
</asp:image>
but this always outputs the neat non-working (in IE6) version. Is there a
way to make it output the different version, depending on the browser is
detects?
Thanks,
ME
<img src="Graphics/TransparentLogo.png" width="249" height="42">
would work, but it doesn't. After looking around I found the work around
<div
style="FILTERrogidXImageTransform.Microsoft.AlphaImageLoader(src='Graphi
cs/LineViewTransparentLogo.png');WIDTH:249px;HEIGHT:42px">
<img src="Graphics/TransparentLogo.png" width="249" height="42"
style="FILTER:Alpha(opacity=0)">
</div>
which works perfectly, but is very ugly. I was hoping that by using the
asp:image tag, I would output the ugly version to IE6, and the neat version
to other browsers. I tried
<asp:image width="249" height="42" imageurl="Graphics/TransparentLogo.png"
alternatetext="LineViewT" runat="server" id="Image1">
</asp:image>
but this always outputs the neat non-working (in IE6) version. Is there a
way to make it output the different version, depending on the browser is
detects?
Thanks,
ME