Re: svg degrades to gif/jpg

<object type="image/svg+xml" data="someSVGimage">
  <img src="plainPng" alt="examples can be dull" />
<object>

(this will feed the img element directly to browsers that don't implement
HTML 4.0 or newer, so should work pretty nicely in anything except browsers
older than the img element)

If you don't care about making valid documents (i.e. you don't care if your
page will become unusable) or you know how to make your own document types,
you might like

<object type="image/svg+xml" data="someSVGimage">
  <embed ...I forget the exact attributes, and am not sure where the
specification is>
    <noembed>
      <img src="plainPng" alt="examples can be dull" />
    </noembed>
  </embed>
<object>

cheers

chaals

On Tue, 18 Dec 2001, jonathan chetwynd wrote:

  Sorry to appear so ignorant, how does one set up a simple page to include an
  svg image if plugin available, otherwise a gif/jpg?
  I'd prefer this to use universal principles rather than a separate page,
  javascript etc... or something like the alt tag if possible.

  I've seen people with commercial interests asking this on other lists

  thanks




-- 
Charles McCathieNevile    http://www.w3.org/People/Charles  phone: +61 409 134 136
W3C Web Accessibility Initiative     http://www.w3.org/WAI    fax: +1 617 258 5999
Location: 21 Mitchell street FOOTSCRAY Vic 3011, Australia
(or W3C INRIA, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France)

Received on Tuesday, 18 December 2001 05:16:35 UTC