XHTML Flash Embed Code

This is the code to embed flash files on XHTML pages.

<object type="application/x-shockwave-flash"
data="swf-file.swf" width="400" height="300">
<param name="movie" value="swf-file.swf" />
<param name="wmode" value="transparent" />
<img src="no-flash.jpg" width="400"
height="300" alt="No Flash Content" />
</object>

For HTML5 pages we’ll use this (but need to check more):

<embed src="swf-file.swf"
width="400" height="300" flashvars=""
wmode="transparent" />
Share:
This entry was posted in CSS CheatSheets and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *