1

The following error can even be found the FancyApps page itself. Go to http://fancyapps.com/fancybox/ in Internet Explorer 9 for example. Go to Internet Options > Advanced > Disable script debugging (Internet Explorer). Click on the YouTube (iframe)-link and close the movie. You'll see the following error appear onscreen:

Line: 1 Error: '_flash_removeCallback' is undefined

Any idea on how this error can be avoided? Thanks in advance!

4

1 回答 1

0

您可以尝试不同的功能实现。通过删除 iframe html 停止 YouTube 视频时出现此错误。相反,只需将 iframe 包装到 div 中,然后刷新 src。如果要删除视频,只需将其隐藏即可。

代替

$('#youTube').html("");

我用

$('#youTube iframe').attr('src', $('#youTube iframe').attr('src'));
$('#youTube').hide();

<div id='youTube'>
<iframe width='640' height='390' src='http://www.youtube.com/embed/VIDEO_ID' frameborder='0' allowfullscreen></iframe>
</div>

希望能帮助到你。

于 2012-06-05T09:58:07.420 回答