首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我无法让ExternalInterface.call在ie7中工作

我无法让ExternalInterface.call在ie7中工作
EN

Stack Overflow用户
提问于 2010-08-11 22:47:03
回答 1查看 584关注 0票数 0
代码语言:javascript
复制
<script type="text/javascript" src="swfobject/swfobject.js"></script>

<script language="javascript" >
swfobject.registerObject("myId", "10.0.0");


function execute(){

return a;

}

</script>



<body style="margin:0">


<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="500">

<param name="movie" value="helpdeskApp_three.swf" />
<param name="allowScriptAccess" value="always" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="helpdeskApp_three.swf" width="800" height="500" >
<!--<![endif]-->
<div>
<h1>Alternative content</h1>
<p><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></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>

我有一个基于这个问题的答案:Getting current URL in Flash from JavaScript using ExternalInterface and IE

然而,这在火狐和ie中都不起作用。

如果我像这样将flash嵌入浏览器中:

代码语言:javascript
复制
<embed src="helpdeskApp_three.swf" id="flash" quality="high" scale="exactfit" width="800" height="500" name="movie" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>

这在Firefox中有效,但在ie中不起作用。

什么是正确的方式嵌入我的flash电影,使它在所有浏览器上工作?

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-08-11 23:04:28

摘自:http://code.google.com/p/swfobject/wiki/documentation#STEP_1:_Embed_both_Flash_content_and_alternative_content_using_s

代码语言:javascript
复制
 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">
    <param name="movie" value="myContent.swf" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">
    <!--<![endif]-->
      <p>Alternative content</p>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
  </object>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3459584

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档