Flash对象在重新设置容器时会重新启动或消失 [英] Flash objects restart or disappear when its container is re-styled

查看:184
本文介绍了Flash对象在重新设置容器时会重新启动或消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个jQuery插件,当用户在页面上传递一个特定的水平点后滚动一个长页面时,可以将选定的一个网页面板固定在浏览器视图端口的顶部。

面板固定或取消固定时,会出现一个奇怪的现象:如果Flash SWF对象作为容器的后代元素存在,则Flash对象将重新启动其动画或者完全消失。

当CSS属性position在 fixed 绝对静态。这迫使Firefox重新绘制其元素,并导致< object> 重新加载并重新Flash动画。我有兴趣阅读这篇文章: http://alexw.me/2010 / 12 / firefox-problems-with-javascript-animation /

有谁知道一个避免< object> ;重新加载标记?我承认Flash是一个广告,但这个问题只发生在Firefox。虽然有人建议这可能是一个错误,但我已经搜索没有成功,我抓住了我的颈部快要接近的截止日期。



在此先感谢! p>


解决方案

这是Firefox本身的一个已知错误。事实上,自2001年以来,它已经被列入他们的bugzilla报告系统,并且还没有被修复,并且可能不会被它的外观所固定。

https://bugzilla.mozilla.org/show_bug.cgi?id=90268


I've created a jQuery plug-in that allows a selected panel of a web page to be pinned to the top of the browser view-port when the user scrolls a long page after passing a particular horizontal point on the page.

When the panel is pinned or unpinned, a strange thing occurs: if a Flash SWF object is present as a descendant element of the container, the Flash object either restarts its animation or disappears completely.

The pin or unpin change occurs when the CSS property "position" switches between fixed, absolute and static. This forces Firefox to redraw its elements and it causes the <object> to reload and reanimate the Flash movie. I read this post with interest: http://alexw.me/2010/12/firefox-problems-with-javascript-animation/

Does anyone know of a workaround that prevents the <object> tag from reloading? I admit the Flash is an ad, but this problem only occurs in Firefox. Although there are suggestions that this may be a bug, I have searched without success and I'm scratching my pate with a deadline fast approaching.

Thanks in advance!

Peter

解决方案

This is a known bug in firefox itself... Actually its been listed on their bugzilla reporting system since 2001 and still has not been fixed, and probably wont be fixed by the looks of it.

https://bugzilla.mozilla.org/show_bug.cgi?id=90268

这篇关于Flash对象在重新设置容器时会重新启动或消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆