JavaScript 将 wmode 集体更改为不透明
我有一个网站,代码如下:
<div id="layout">
<div id="regionHero" class="regionHero">
<object type="application/x-shockwave-flash" id="jupiterContent" name="jupiterContent" data="http://a.dolimg.com/explore/swf/code/moduleBootstrap.swf" width="996" height="502" wmode="opaque">
<param name="menu" value="false"/>
<param name="scale" value="noscale"/>
<param name="quality" value="best"/>
<param name="salign" value="tl"/>
<param name="base" value="."/>
<param name="align" value="t"/>
<param name="wmode" value="transparent"/>
<param name="flashVars" value="divIdDataPath=heroContent&divContainerID=regionHero&companionAdDivID=companion-ad&swfID=jupiterContent&showPreRoll=false&showTakeOver=false"/>
<param name="allowFullScreen" value="true"/>
<param name="allowScriptAccess" value="always"/>
</object>
</div>
我想将所有出现的 wmode 更改为不透明。通过 jquery 可以轻松完成此操作吗?在对象定义中,wmode 设置为不透明,但在参数中它变为透明。
I have a site with code like this:
<div id="layout">
<div id="regionHero" class="regionHero">
<object type="application/x-shockwave-flash" id="jupiterContent" name="jupiterContent" data="http://a.dolimg.com/explore/swf/code/moduleBootstrap.swf" width="996" height="502" wmode="opaque">
<param name="menu" value="false"/>
<param name="scale" value="noscale"/>
<param name="quality" value="best"/>
<param name="salign" value="tl"/>
<param name="base" value="."/>
<param name="align" value="t"/>
<param name="wmode" value="transparent"/>
<param name="flashVars" value="divIdDataPath=heroContent&divContainerID=regionHero&companionAdDivID=companion-ad&swfID=jupiterContent&showPreRoll=false&showTakeOver=false"/>
<param name="allowFullScreen" value="true"/>
<param name="allowScriptAccess" value="always"/>
</object>
</div>
I'd like to change all occurrences of wmode to opaque. Is this easily done via jquery? In the object definition, wmode is set to opaque but in the params it becomes transparent.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦,您可以更改它,但您需要重新加载 SWF 才能使其生效。该参数是 Flash Player 的预页面加载设置。
Oh, you can change it, but you'll need to reload the SWF in order for it take affect. The param would be a pre-pageload setting to the Flash Player.