Reply to Re: Why does IE put a gray background on my image?

Your name:

Reply:


Posted by Alan J. Flavell on 02/05/06 17:45

On Sun, 5 Feb 2006, Toby Inkster wrote:

> And with a little creativity, you could serve up a transparent GIF
> to any browsers with "MSIE" in their user-agent string, and a PNG to
> everyone else.

Don't do that - it's bad in principle, and works badly in practice.
For all the usual reasons.

PNG versus GIF can be successfully negotiated on the basis of the
client's initial Accept: header. As far as I recall, even MSIE gets
this correct enough to be useful - at least on its initial request.

Apache's MultiViews will do this pretty much for free, out of the box,
if you let it.

(MSIE has a silly habit of sending "Accept: */*" when reload is used,
but I guess we can live with that. Workarounds would likely have
negative impact on real WWW browsers, so I won't suggest those. But
your proposed kludge would have negative impact on /all/ of the real
WWW minority browsers that feel they need to masquerade as MSIE in
order not to get locked out by idiot webmasters.)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация