xhtml 1.1 how to flash embed code using <object>

Post Reply
tong
Site Admin
Posts: 2387
Joined: Fri 01 May 2009 8:55 pm

xhtml 1.1 how to flash embed code using <object>

Post by tong »

xhtml 1.1 doesn't allow to use <embed> tag. You have to use <object> instead and it's good why we need the long <embed> tag.

For Firefox

Code: Select all

<object width="728" height="313" type="application/x-shockwave-flash" data="banner.swf?xml_path=b3.xml">
    <param name="quality" value="high"/>
    <param name="wmode" value="direct"/> 
</object>
For IE

Code: Select all

<object width="728" height="313" type="application/x-shockwave-flash">
    <param name="movie" value="banner.swf?xml_path=b3.xml"/>
    <param name="quality" value="high"/>
    <param name="wmode" value="direct"/> 
</object>
Combine codes

Code: Select all

<object width="728" height="313" type="application/x-shockwave-flash" data="banner.swf?xml_path=b3.xml">
    <param name="movie" value="banner.swf?xml_path=b3.xml"/>
    <param name="quality" value="high"/>
    <param name="wmode" value="direct"/> 
</object>
Post Reply