html - 在 IE html 上加载 swf

标签 html css flash

<div>
  <object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
    <param value="/media/camera.swf" name="movie">
    <param value="high" name="quality">
    <param value="#FFFFFF" name="bgcolor">
    <embed align=""
           type="application/x-shockwave-flash"
           name="myMovieName"
           bgcolor="#FFFFFF"
           quality="high"
           src="/media/camera.swf"
           href="/media/camera.swf">
  </object>
</div>

swf 文件没有在 IE 中加载我在这里做错了什么

最佳答案

我真的认为你应该使用 swfobject。从这里下载: http://code.google.com/p/swfobject/downloads/detail?name=swfobject_2_2.zip&can=2&q=

然后获取 expressinstall.swf 和 swfobject.js 文件。

这是您的内容的示例代码:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
        <title>SWFObject example</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <meta name="description" content="" />
        <meta name="keywords" content="" />
        <script type="text/javascript" src="js/swfobject.js"></script>
        <script type="text/javascript">
            var fo = new Object();
            function initFlash()
            {
                fo.flashvars = {};
                fo.params = {
                    allowScriptAccess: "sameDomain"
                };
                fo.attributes = {};
                swfobject.embedSWF("smedia/camera.swf", "flashcontent", "100%", "100%", "10,1,103", "media/expressInstall.swf", fo.flashvars, fo.params, fo.attributes);
            }
        </script>
    </head>
    <body>
        <div id="flashcontent">Flash will be placed here by swfobject.</div>
    </div>
<script type="text/javascript">initFlash();</script>
    </body>
    </html>

您可以在 documentation 中阅读更多有关其工作原理的信息.

罗布

关于html - 在 IE html 上加载 swf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4906036/

相关文章:

javascript - 如何在不使用溢出 :hidden & position:fixed? 的情况下禁用滚动

php - 使用 session 登录

javascript - 在可拖动的 div 中闪烁

HTML/CSS 多级嵌套列表编号

html - CSS 边框动画适用于整个 Div 内容

javascript - VUE CLI - 如何导入脚本和样式

html - Bootstrap 中等高和等宽的盒子?

javascript - 我的 fancybox 没有加载

flash - Web 应用程序会取代桌面应用程序吗?

cordova - 如何在phonegap中播放swf文件?