menu 災害の̴女王dreamspace 🍍🕘🍏📵 🐊🐒💍🐠 📦😍📓📫

Standards Compliant Flash Embed

http://www.flickr.com/photos/22322135@N00/8095616182/

One of the bigger problems I’ve faced in doing standards compliant web development is embedding flash without breaking any of the W3C’s standards. But thanks to Drew McLellan over at A List Apart I was able to put together a standards-compliant flash embed template. (Read his article if you want the whole explanation, and such)

<object
  type="application/x-shockwave-flash"
  data="this is the url to your flash document"
  id="give it an id"
  width="define your width"
  height="define your height">
  <param
    name="put param values"
    value="here" />
  <img
    src="one neat thing about the `object` tag is the fact that"
    alt="you can include alternate content for browsers that don't support flash." />
</object>

you can use any html you’d like as alternate content. isn’t standards compliance great! (i failed to mention earlier the object type tells the browser the type of content it’s dealing with application/x-shockwave-flash in the case of flash)