我遇到一个问题,其中下拉菜单选项显示在包含视频列表的swfobject下方。将鼠标悬停在包含子菜单的下拉菜单选项时,请参阅此处:http://newbie-cms.net/demo/
我有以下代码:
<div name="player" id="player" style="width:auto;padding-left:200px;position:absolute;z-index:200">player</div>
</center>
<script type="text/javascript">
var so = new SWFObject('mediaplayer1.swf', 'mpl', '818', '380', '8');
so.addParam('allowscriptaccess', 'always');
so.addParam('allowfullscreen', 'true');
so.addParam('wmode', 'transparent');
so.addVariable('file', 'playlist.xml');
so.addVariable('width', '818');
so.addVariable('height', '380');
so.addVariable('displaywidth', '550');
so.addVariable('backcolor', '0xFFFFFF');
so.addVariable('frontcolor', '0x5566FF');
so.addVariable('bufferlength', '5');
so.addVariable('overstretch', 'fit');
so.addVariable('autoscroll', 'true');
so.addVariable('thumbsinplaylist', 'true');
so.addVariable('autostart', 'true');
so.addVariable('shuffle', 'false');
so.addVariable('link','');
so.addVariable('linkfromdisplay','true');
so.addVariable('linktarget','_self');
so.write('player');
</script>
<script type="text/javascript" src="swfobject1.js"></script>
在使用下拉菜单显示闪光灯时,我错过了什么。如何使用此代码设置wmode = transparent?
答案 0 :(得分:0)
只需将z-index: 999
添加到.dropdown_5columns
即可。适合我。