Difference between revisions of "SWFObject"

From Wikicliki
Jump to: navigation, search
Line 1: Line 1:
 +
1. insert the object
 +
 
<pre>      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">
 
<pre>      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">
 
         <param name="movie" value="myContent.swf" />
 
         <param name="movie" value="myContent.swf" />
Line 10: Line 12:
 
       </object>
 
       </object>
 
</pre>
 
</pre>
 +
 +
2. insert into head (the file)
 +
<pre><script type="text/javascript" src="swfobject.js"></script></pre>
 +
 +
 +
3. insert into head (the registration)
 +
 +
<pre>    <script type="text/javascript">
 +
    swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
 +
    </script></pre>
  
 
It should be strictly compliant.
 
It should be strictly compliant.

Revision as of 11:57, 19 June 2008

1. insert the object

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">
        <param name="movie" value="myContent.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">
        <!--<![endif]-->
          <p>Alternative content</p>
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>

2. insert into head (the file)

<script type="text/javascript" src="swfobject.js"></script>


3. insert into head (the registration)

    <script type="text/javascript">
    swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
    </script>

It should be strictly compliant.