首先让我解释一下这个问题。我有一个Flash播放器(JWPlayer),它显示我需要静音的前贴片广告。我已经通过JWPlayer的API尝试过但是没有用。不知何故,广告在播放器上运行,无论我做什么,我都无法将它们静音。我怎样才能对广告做同样的事情?我的意思是,如何在广告上放置一些html元素或任何其他元素但仍然显示它,只将它放在不允许声音听到的容器上。这是我正在执行此操作的页面http://latinongroup.com/test/test_player_optimatic.html和html代码。
<div id="player1">
<div id="botr_Uk4i6oUf_9elyllvm_div_wrapper" style="position: relative; display: block; width: 302px; height: 252px;">
<a id="beforeswfanchor0" href="#botr_Uk4i6oUf_9elyllvm_div" tabindex="0" title="Flash start" style="border:0;clip:rect(0 0 0 0);display:block;height:1px;margin:-1px;outline:none;overflow:hidden;padding:0;position:absolute;width:1px;" data-related-swf="botr_Uk4i6oUf_9elyllvm_div"></a>
<object type="application/x-shockwave-flash" data="http://assets-jpcust.jwpsrv.com/player/6/6124956/jwplayer.flash.swf" width="100%" height="100%" bgcolor="#000000" id="botr_Uk4i6oUf_9elyllvm_div" name="botr_Uk4i6oUf_9elyllvm_div" class="jwswf swfPrev-beforeswfanchor0 swfNext-afterswfanchor0" tabindex="0">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="seamlesstabbing" value="true">
<param name="wmode" value="opaque">
</object>
<a id="afterswfanchor0" href="#botr_Uk4i6oUf_9elyllvm_div" tabindex="0" title="Flash end" style="border:0;clip:rect(0 0 0 0);display:block;height:1px;margin:-1px;outline:none;overflow:hidden;padding:0;position:absolute;width:1px;" data-related-swf="botr_Uk4i6oUf_9elyllvm_div"></a>
<div id="botr_Uk4i6oUf_9elyllvm_div_aspect" style="display: none;"></div>
<div id="botr_Uk4i6oUf_9elyllvm_div_ping" style="position: absolute; top: 0px; z-index: 10;"></div>
<div id="botr_Uk4i6oUf_9elyllvm_div_vast" style="position: absolute; top: 0px; z-index: 11; visibility: hidden;"></div>
<div id="botr_Uk4i6oUf_9elyllvm_div_jwpsrv" style="position: absolute; top: 0px; z-index: 12;">
<div class="afs_ads" style="width: 1px; height: 1px; position: absolute; background: transparent;"> </div>
</div>
</div>
</div>
我需要将物体放入容器的疼痛中以使声音静音。如果有人有想法请帮助我。非常感谢
答案 0 :(得分:0)
尝试wmode="transparent"
将对象作为属性或作为参数。
transparent - SWF内容与页面上的其他HTML元素一起分层。 https://helpx.adobe.com/flash/kb/flash-object-embed-tag-attributes.html