0

I am trying to create a layered div using z-index and one of the layers have to contain a flowplayer. Once layer is created properly I will update div's z-index value based on program's logic. Following code works in Chrome but not in Firefox and IE.

Problem: In IE and firefox div containing flowplayer does not hide.

        <div id="dvd_supplement" style="height:200px;width:300px;">
            <!-- this A tag is where your Flowplayer will be placed. it can be anywhere -->
            <div style="z-index:11;position:relative;top:0px;">
                <a id="player"
                     href="barsandtone.flv"
                     style="width:300px;height:200px" 
                    >
                </a>
            </div>
            <div style="z-index:2;position:relative;top:-200px;">
                <img id="player_laptop_screen" src="images/laptop_screen.jpg" width="300px" height="200px"/>                
            </div>
            <div style="z-index:3;position:relative;top:-400px;">
                <img id="player_img" src="images/blank_screen.jpg" width="300px" height="200px"/>
            </div>              
        </div>
4

2 回答 2

2

我已经通过在 flowplayer() 中使用 wmode 选项解决了这个问题,即 flowplayer("player", {src: "../flowplayer/flowplayer-3.2.16.swf", wmode: "opaque"}, { clip: { autoPlay :假,自动缓冲:真}});

于 2013-11-08T08:25:28.747 回答
0

Flowplayer 配置有一个zIndex属性

所以考虑使用

$f("selector","path-to-your-swf",{
option 1:...,
option 2:...,
option 3:...,
zIndex: value,
...,
...,
});
于 2013-11-08T07:38:56.433 回答