代码如下:
$(function () { var src = $("#aaa embed").attr("src"); flowplayer("tl_player", "/skins/wanmei/flowplayer/flowplayer-3.2.12.swf", { clip: { url: src, autoPlay: false, autoBuffering: false } }); }); $(function () { $("embed").remove(); });
<div id="tl_player" style="width: 320px; height: 250px; z-index: 1"></div>
页面生成后代码:
<div id="tl_player" style="width: 320px; height: 250px; z-index: 1"> <object id="tl_player_api" width="100%" height="100%" type="application/x-shockwave-flash" data="/skins/wanmei/flowplayer/flowplayer-3.2.12.swf" name="tl_player_api"> <param value="true" name="allowfullscreen"> <param value="always" name="allowscriptaccess"> <param value="high" name="quality"> <param value="#000000" name="bgcolor"> <param value="config={"clip":{"url":"http://localhost:8014/video/2.flv","autoPlay":false,"autoBuffering":false},"playerId":"tl_player","playlist":[{"url":"http://localhost:8014/video/2.flv","autoPlay":false,"autoBuffering":false}]}" name="flashvars"> </object>
用的是flowplayer插件,用于显示视频。不论是改z-index 还是别的方法视频总是在最上面一层!!!!
求助!!!!!!已经试过很多办法,各位大侠帮帮忙
把z-index调大一点.
<param name=”wmode" value="opaque">