如何保护Flash视频不被刷新?

时间:2012-06-04 07:16:03

标签: javascript css flash firefox

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>flash video refresh</title>
</head>
<body>
    <div id="PlayerZone"><embed height="496" width="580" flashvars="flvid=19742822&amp;createtime=2012-4-19 13:46:33" wmode="opaque" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#000000" name="player" id="player" src="swf/mine.swf" type="application/x-shockwave-flash"></div>
<a onclick="return test();" id="test">click me popup a div,and hide the scrollbar</a>
</body>

代码:

例如,当我单击一个#test按钮,弹出一个div时,没问题,但是我想在div弹出时隐藏滚动条。

我在test()函数中使用$('html')。css('overflow','hidden'),在大多数浏览器中都可以执行它,除了FF(我使用的是FF3.6)它会刷新flash。 / p>

https://bugzilla.mozilla.org/show_bug.cgi?id=90268 (溢出/显示/位置导致此错误)

如何解决?谢谢

1 个答案:

答案 0 :(得分:0)

    Hi thanks for asking these kind of question.

Better you use in a updated firefox version and try. if not 
     please refer this link this will help u i think. use local shared objects. 
    http://www.actionscript.org/forums/showthread.php3?t=79009
    http://flash.bigresource.com/How-to-protect-Flash-Videos-from-Being-Downloaded-KV9j8rfkn.html
    http://whatisgon.wordpress.com/2010/03/17/poking-around-in-the-firefox-cache-and-protecting-your-privacy-from-flash/