Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash电影在IE中不起作用_Flash_Slideshow - Fatal编程技术网

Flash电影在IE中不起作用

Flash电影在IE中不起作用,flash,slideshow,Flash,Slideshow,页面在Firefox中运行良好,而不是IE。有人可以查看源代码并发现任何问题吗 我一点也做不好 我想我在这一点上搞砸了太多,不知道该怎么办 显示电影的代码如下所示: <div id="mainhome"> <table width="700" height="309" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="350" valign="top" backgrou

页面在Firefox中运行良好,而不是IE。有人可以查看源代码并发现任何问题吗

我一点也做不好

我想我在这一点上搞砸了太多,不知道该怎么办

显示电影的代码如下所示:

  <div id="mainhome">
<table width="700" height="309" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="350" valign="top" background=""><img src="/images/bckgrnd3.jpg" width="350" height="309" /></td>
    <td width="350" align="right" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="309" id="myFlashContent">
        <param name="movie" value="flash/flashslide.swf?src=flash-here.com&imglist_fn=flash/getimglist.txt&img_path=flash/slides&interval=5000&w=350&h=309" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="flash/flashslide.swf?src=flash-here.com&imglist_fn=flash/getimglist.txt&img_path=flash/slides&interval=5000&w=350&h=309" width="350" height="309">
          <!--<![endif]-->
          <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </td>
  </tr>
</table>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="309" id="myFlashContent">
                <param name="movie" value="flash/flashslide.swf?src=flash-here.com&imglist_fn=flash/getimglist.txt&img_path=flash/slides&interval=5000&w=350&h=309" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="flash/flashslide.swf?src=flash-here.com&imglist_fn=flash/getimglist.txt&img_path=flash/slides&interval=5000&w=350&h=309" width="350" height="309">
                <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                    </a>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>


嵌入flash电影最简单的方法是使用类似 有两种方法可以使用它

  • 使用javascript动态加载
  • 静态加载只使用html
他们还有一个非常易于使用的配置程序,可以生成html代码,在每个浏览器中都可以使用,并将其嵌入到您的页面中

在您的情况下,可能是这样的:

  <div id="mainhome">
<table width="700" height="309" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="350" valign="top" background=""><img src="/images/bckgrnd3.jpg" width="350" height="309" /></td>
    <td width="350" align="right" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="309" id="myFlashContent">
        <param name="movie" value="flash/flashslide.swf?src=flash-here.com&imglist_fn=flash/getimglist.txt&img_path=flash/slides&interval=5000&w=350&h=309" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="flash/flashslide.swf?src=flash-here.com&imglist_fn=flash/getimglist.txt&img_path=flash/slides&interval=5000&w=350&h=309" width="350" height="309">
          <!--<![endif]-->
          <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </td>
  </tr>
</table>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="309" id="myFlashContent">
                <param name="movie" value="flash/flashslide.swf?src=flash-here.com&imglist_fn=flash/getimglist.txt&img_path=flash/slides&interval=5000&w=350&h=309" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="flash/flashslide.swf?src=flash-here.com&imglist_fn=flash/getimglist.txt&img_path=flash/slides&interval=5000&w=350&h=309" width="350" height="309">
                <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                    </a>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>

那些IE条件注释被破坏

<!--[if !IE]>
  The content in here should ACTUALLY be part of the HTML comment.
  Thus the "double-dash" doesn't re-occur until the very last part
  of the closing tag.
<![endif]-->

尽管需要注意的是,由于没有其他浏览器支持IE的条件注释,“!IE”语法并不能真正为您带来任何好处

最好将要发送给IE的HTML内容包装在条件注释中。 e、 g


使用用于跨浏览器互操作性。

如果您使用的是Flash 8及更高版本,请尝试在“发布设置”中启用HTML作为发布输出

看看生成的.html文件。记住也要链接到外部javascript文件中

另一种方法是使用。我更喜欢Adobe的方法

不需要和这样的标签