how to put flash (.swf) in a page?

后端 未结 3 1612
忘掉有多难
忘掉有多难 2021-01-23 08:43

i\'m planning to use a .swf file as a header. this won\'t work.


can you tell

相关标签:
3条回答
  • 2021-01-23 09:27

    Try this instead:

    <object width="650" height="140">
      <param name="movie" value="exactheader.swf">
      <embed src="exactheader.swf" width="650" height="140"></embed>
    </object>
    
    0 讨论(0)
  • 2021-01-23 09:33

    You should use <embed> tag to embed flash files to an html page :

    <object width="650" height="140">
      <param name="movie" value="exactheader.swf">
      <embed src="exactheader.swf" width="650" height="140"> </embed>
    </object>
    

    EDIT : As Russ pointed, I just found the resource why we should use both object and embed tags here.

    In the code above there is both an tag and an <object> tag. This is because the tag is recognized by Internet Explorer, and Netscape recognizes the <embed> tag and ignores the <object> tag.

    0 讨论(0)
  • 2021-01-23 09:40

    I have found swfobject the 'best' method for embedding flash in html. It handles, version checking, alternate content, etc. Spend a few minutes getting familiar with this easy to use api: http://code.google.com/p/swfobject/

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