gpt4 book ai didi

youtube - 将JW播放器放到fancybox中-(YouTube链接到JW)

转载 作者:行者123 更新时间:2023-12-03 06:34:49 24 4
gpt4 key购买 nike

我有YouTube链接到JW播放器。一切正常。现在如何将此播放器(此代码)放入fancybox?

<div id="player_779">
<embed type="application/x-shockwave-flash"
src="http://teodore.ge/site/content/scripts/mediaplayer/player.swf"
width="640" height="383"
style="undefined" id="player_779" name="player_779"
quality="high" allowfullscreen="true"
allowscriptaccess="always" wmode="opaque"
flashvars="file=http://youtu.be/VHcrPImvWlk&amp;skin=http://teodore.ge/site/content/scripts/mediaplayer/nacht.zip&amp;autostart=true">
</div>
</div>

请给我一个例子。

最佳答案

 <a  class='video' data-width="600" data-height="345" >link</a>

<script>
$(".video").fancybox({
fitToView: false, // to show videos in their own size
content: '<span></span>', // create temp content
scrolling: 'no', // don't show scrolling bars in fancybox
afterLoad: function () {
// get dimensions from data attributes
var $width = $(this.element).data('width');
var $height = $(this.element).data('height');
// replace temp content
this.content = ' <embed type="application/x-shockwave-flash" src="http://ww.ge/site/content/scripts/mediaplayer/player.swf" width="640" height="383" style="undefined" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" flashvars="file=http://youtu.be/VHcrPImvWlk&amp;skin=http://www.ge/site/content/scripts/mediaplayer/nacht.zip&amp;autostart=true">';
}
});
</script>

关于youtube - 将JW播放器放到fancybox中-(YouTube链接到JW),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15857518/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com