HTML and CSS Reference
In-Depth Information
Flash Content
You can embed a Flash file with the general object tag in XHTML as follows:
Declare an application/x-shockwave-flash object.
1.
<object type="application/x-shockwave-flash">
</object>
2.
Add the source with cross-browser code.
<object type="application/x-shockwave-flash" data="flash/header.swf">
<param name="movie" value="flash/header.swf" />
</object>
3.
Provide attributes such as dimensions and an identifier (if required).
<object type="application/x-shockwave-flash" data="flash/header.swf" width="610"
height="224" id="flash" >
<param name="movie" value="flash/header.swf" />
</object>
4.
If the Flash content has a transparent background, it should be declared as an optional
parameter. This is also required for providing the possibility to set layer order within the
web page.
<object type="application/x-shockwave-flash" data="flash/header.swf" width="610"
height="224" id="flash">
<param name="movie" value="flash/header.swf" />
<param name="wmode" value="transparent" />
</object>
5.
Add alternate content such as a placeholder image and text descriptions to improve
accessibility. If a short description is not sufficient, a good practice is to add a hyperlink to
a resource that describes the object.
<object type="application/x-shockwave-flash" data="flash/header.swf" width="610"
height="224" id="flash">
<param name="movie" value="flash/header.swf" />
<param name="wmode" value="transparent" />
<a href="longdesc/"><img src="images/altheader.jpg" alt="The image alternative for
the Flash header." title="Our headquarters" /></a>
</object>
 
Search WWH ::




Custom Search