我用的是jquery + easyui写了一前台的网页播放器 ,里面有两个网页播放器 ,我想实现的功能是如何点击一个按钮更改 两个网页播放器的位置,并且播放器的大小也要相应的改变。请帮帮忙了。在线等啊一:jquery实现切换
二:href='vod/a' 中如何接收前台的变量数组的值
我贴上一段代码
<div class="easyui-panel" id="paneluse" title="高清视频" fit="true"> <div id="vid" class="videouse">
<a class="rtmp" href='vod/a' style="display: block; width: 1440px; height: 810px; margin: 0 auto"
id="playeruse"></a>
<script type="text/javascript">
$f("playeruse", "./flowplayer/flowplayer-3.2.11.swf", {
clip: {
provider: 'rtmp'
},
plugins: {
rtmp: {
url: "./flowplayer/flowplayer.rtmp-3.2.10.swf",
netConnectionUrl: 'rtmp://192.168.1.54/local'
}
}
});
</script>
</div> </div> </div>
<div id="east1" region="east" style="width:465px;height:900px" border="false">
<div id="layout2" class="easyui-layout" fit="true"> <div id="north1" region="north" style="width:352px;height:225px" border="false">
<div class="easyui-panel" id="paneluse1" title="第一路视频" fit="true"> <div id="vid1" class="videouse1">
<a class="rtmp" href="vod/a" style="display: block; width:352px;height:197px; margin: 0auto" id="playeruse1"></a>
<script type="text/javascript">
$f("playeruse1", "./flowplayer/flowplayer-3.2.11.swf", {
clip: {
provider: 'rtmp'
},
plugins: {
rtmp: {
url: "./flowplayer/flowplayer.rtmp-3.2.10.swf",
netConnectionUrl: 'rtmp://192.168.1.54/local'
}
}
});
</script>
</div>
</div>
</div>
二:href='vod/a' 中如何接收前台的变量数组的值
我贴上一段代码
<div class="easyui-panel" id="paneluse" title="高清视频" fit="true"> <div id="vid" class="videouse">
<a class="rtmp" href='vod/a' style="display: block; width: 1440px; height: 810px; margin: 0 auto"
id="playeruse"></a>
<script type="text/javascript">
$f("playeruse", "./flowplayer/flowplayer-3.2.11.swf", {
clip: {
provider: 'rtmp'
},
plugins: {
rtmp: {
url: "./flowplayer/flowplayer.rtmp-3.2.10.swf",
netConnectionUrl: 'rtmp://192.168.1.54/local'
}
}
});
</script>
</div> </div> </div>
<div id="east1" region="east" style="width:465px;height:900px" border="false">
<div id="layout2" class="easyui-layout" fit="true"> <div id="north1" region="north" style="width:352px;height:225px" border="false">
<div class="easyui-panel" id="paneluse1" title="第一路视频" fit="true"> <div id="vid1" class="videouse1">
<a class="rtmp" href="vod/a" style="display: block; width:352px;height:197px; margin: 0auto" id="playeruse1"></a>
<script type="text/javascript">
$f("playeruse1", "./flowplayer/flowplayer-3.2.11.swf", {
clip: {
provider: 'rtmp'
},
plugins: {
rtmp: {
url: "./flowplayer/flowplayer.rtmp-3.2.10.swf",
netConnectionUrl: 'rtmp://192.168.1.54/local'
}
}
});
</script>
</div>
</div>
</div>
首先--调换位置。$("播放器1").css({"left":"播放器2的left",“top”:“播放器2的top”,"width":"你需要的大小":"height":"你需要的大小"})
另外一个等同。 留下QQ945332077 不懂来找我