Embed flash in html

后端 未结 4 640
逝去的感伤
逝去的感伤 2021-01-02 00:48

In chrome, ie and safari this is not a problem, but in firefox it is.

I use for my flashclip.



        
                      
相关标签:
4条回答
  • 2021-01-02 01:20

    After some testing, this works fine:

    <object type="application/x-shockwave-flash" data="myclip.swf" 
        width="550" height="400"> 
    
        <param name="movie" value="myclip.swf" />
        <param name="quality" value="high" />
    </object>
    

    Firefox needed both data, width and height.

    0 讨论(0)
  • 2021-01-02 01:21

    The code is <embed src="helloworld.swf">.

    0 讨论(0)
  • 2021-01-02 01:27

    For cross browser flash embedding, you need to use both <object> and <embed> tags, nested inside one another, and it might also help to include the data attribute on the <object> like this:

    <object type="application/x-shockwave-flash" data="myclip.swf"> 
        <param name="movie" value="myclip.swf" />
        <param name="quality" value="high" />
        <!-- Sandwich the embed tag inside the object tag -->
        <embed src="myclip.swf" quality="high" />
    </object>
    

    Alternatively, I'd suggest using the swfobject javascript micro-library for robust cross browser flash embedding.

    0 讨论(0)
  • 2021-01-02 01:38

    Use both object and embed tag. Some browsers use the tag and 'name' to get to the swf, others use and 'id'

    0 讨论(0)
提交回复
热议问题