Flash 影片在 ie 6 中不可见

发布于 2025-01-06 22:50:41 字数 1302 浏览 0 评论 0原文

我有一个 Flash 电影,我使用此代码将其嵌入跨浏览器

'<object id="adFoxMovie" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" align="left">
    <param name="bgcolor" value="#faa">
    <param name="allowScriptAccess" value="always" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="'+this.mainSwfUrl+'" />
    <param name="flashvars" value="'+this.flashParameters+'&'+this.events+'" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed name="adFoxMovie" src="'+this.mainSwfUrl+'" quality="high" width="100%" height="100%" align="left" allowScriptAccess="always" allowFullScreen="false" bgcolor="#cccccc" wmode="transparent" flashvars="'+this.flashParameters+'&'+this.events+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>'

,并且我使用此字符串作为页面上存在的 div 的innerHTML。

现在在除 IE 6 之外的所有浏览器中都可以正常工作。

奇怪的是,我有两部电影,其中一部电影在这个嵌入中,而另一部电影则没有。我似乎找不到任何明显的区别。当然,这两部电影的 flashvars 略有不同。

现在我尝试获取电影链接并在浏览器窗口中打开它。这部电影似乎本身就有效。

附言。无法使用 SWF 对象

I have a flash movie and I use this code to embed it crossbrowser

'<object id="adFoxMovie" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" align="left">
    <param name="bgcolor" value="#faa">
    <param name="allowScriptAccess" value="always" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="'+this.mainSwfUrl+'" />
    <param name="flashvars" value="'+this.flashParameters+'&'+this.events+'" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed name="adFoxMovie" src="'+this.mainSwfUrl+'" quality="high" width="100%" height="100%" align="left" allowScriptAccess="always" allowFullScreen="false" bgcolor="#cccccc" wmode="transparent" flashvars="'+this.flashParameters+'&'+this.events+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>'

And I use this string as innerHTML for a div present on the page.

Now in all browsers except IE 6 this works fine.

The curious thing is that I have two movies and one works in this embed and the other doesn't. I can't seem to find any apparent difference. Of course the two movies have slightly different flashvars passed.

Now I've tried taking the movie link and just opening it in the browser window. The movie seems to work on its own.

PS. Can't use SWF object

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沉睡月亮 2025-01-13 22:50:41

解决:看来这种嵌入方式与问题无关。

评语:这个问题很久没有得到答案。无论如何,我希望现在IE6与Flash的混合不再是问题。

Resolution: It seems that this embed way had nothing to do with the problem.

Comment: This question didn't get an answer for a quite a long time. Anyway I hope IE6 mixed with flash is not a problem nowadays.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文