Can someone please show me how

Discussion in 'HTML & Website Design' started by oo7ml, Feb 28, 2008.

  1. #1
    Hi, i have a flash movie called flash_box which is 100px x 100px. What is the correct (strict valid xhtml) way to embed this into my page? thanks in advance
     
    oo7ml, Feb 28, 2008 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this..

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
               codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
               width="300" height="120">
        <param name="movie" value="yourfile"> 
        <param name="quality" value="high">
    
        <param name="bgcolor" value="#FFFFFF">
        <!--[if !IE]> <-->
        <object data="yourfile.swf"
                width="300" height="120" type="application/x-shockwave-flash">
         <param name="quality" value="high">
         <param name="bgcolor" value="#FFFFFF">
         <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
         FAIL (the browser should render some flash content, not this).
        </object>
        <!--> <![endif]-->
    
       </object>
    Code (markup):
    but imo just use embed but thats just me ...
     
    wd_2k6, Feb 28, 2008 IP
  3. Wuiqed

    Wuiqed Well-Known Member

    Messages:
    110
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #3
    The Flash Satay method
    <object type="application/x-shockwave-flash" data="movie.swf"  width="400" height="300">
        <param name="movie" value="movie.swf" />
    </object>
    Code (markup):
    Read more at http://alistapart.com/articles/flashsatay
     
    Wuiqed, Feb 28, 2008 IP