Re: handling fallback content for still images

2007/7/3, Sander Tekelenburg:
>
> An attempt at finding a possible solution:
> <http://santek.no-ip.org/~st/tests/picturetag/>.

Another one:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cp%3ESome%20experiments%20with%20IE%20conditional%20comments%3A%0A%3Cp%3E%0A%3Cpicture%20src%3D%22image%22%3E%0A%20%20%3C%21--%5Bif%20IE%5D%3E%0A%20%20%3Cimg%20src%3D%22image%22%20alt%3D%22This%20image%20is%20rendered%20only%20in%20IE%22%3E%0A%20%20%3C%21%5Bendif%5D--%3E%0A%20%20%3C%21--%5Bif%20%21IE%5D%3E%20%3C--%3E%0A%20%20%3Cobject%20type%3D%22image/gif%22%20data%3D%22image%22%3E%0A%20%20%20%20Fallback%20for%20non-IE.%0A%20%20%3C/object%3E%0A%20%20%3C%21--%3E%20%3C%21%5Bendif%5D--%3E%0A%3C/picture%3E%0A%3Cp%3EThis%20comes%20after%20the%20image.

Using IE conditional comments.

Major con: fallback in IE is only the img/@alt, so that's not much
better than using <img> in the first place...

-- 
Thomas Broyer

Received on Tuesday, 3 July 2007 10:58:26 UTC