[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Image transparency...
On Fri, 2005-10-21 at 15:55 +0100, Ian Lowe wrote:
>
> *but* pop over to IE6 (I use firefox by default) and they look
> *hideous* no
> transparency, a strange banding effect - almost as if it were only an
> 8 bit
> image.
>
> I thought about saving as gif, but the lower colour depth impacts the
> shadow
> effects quite badly.
>
> The big question - is there a way around this?
Ian,
It's possible to do, and relatively easy if you're writing ONLY for IE.
The trick, as ever, is to write browser-independant code.
The IE-only way is to use those stupid "visual filters" you can
apply to
images as of IE4 Well, while most of them were completely useless,
there's one that does what you want.
<DIV ID="MyDIV">
STYLE="position:relative";
height=100px;
width=100px;
filter:progID:DXImageTransofm.Microsoft.AlphaImageLoader>
<SRC="MyImage.png">
</DIV>
The browser-neutral way is to wrapper that in some JavaScript that
writes out the PNG in a standards-compliant browser, the hack in MSIE4+,
and presumably a link to mozilla.org in MEIS3- :-)
Regards,
Mark
Have a look at www.alistapart.com/articles/pngopacity for more info.
UKHA_D Main Index |
UKHA_D Thread Index |
UKHA_D Home |
Archives Home
|