您可以將新選項添加到t他jTubeEmbed插件這樣的:http://jsfiddle.net/aFx29/2/
變化:
jTubeEmbed: function(video, options) {
var options = $.extend({
// Embed Options
width: 560,
height: 340,
wmode: 'window', // can be window, transparent and opaque
// Player Options
autoplay: false,
fullscreen: false,
related: true,
loop: false,
keyboard: true,
genie: false,
border: false,
highdef: true,
start: 0
}, options);
// ... ommitted for brevity ...
if(options.wmode) {
videoEmbed += '<param name="wmode" value="' + options.wmode + '"></param>';
}
if(options.fullscreen == true) {
videoEmbed += '<param name="allowFullScreen" value="true"></param>';
}
videoEmbed += '<embed src="'+videoUrl+'"';
videoEmbed += ' type="application/x-shockwave-flash"';
if(options.wmode) {
videoEmbed += ' wmode="' + options.wmode + '"';
}
if(options.fullscreen == true) {
videoEmbed += ' allowfullscreen="true"';
}
videoEmbed += ' allowscriptaccess="always"';
videoEmbed += ' width="'+options.width+'" height="'+options.height+'">';
videoEmbed += ' </embed>';
videoEmbed += '</object>';
return videoEmbed;
}
並傳入你希望在電話會議上對jTubeEmbed
喜歡的選項:
$.jTubeEmbed(this.video, {
// your options here,
wmode: 'opaque'
});
左箭頭顯示在播放器上,爲了我。你在測試什麼瀏覽器? – Dcullen
@Dcullen Im使用chrome最新版本。我也看到箭頭,但不是所有的時間。有時只有當我向下滾動時,它會一直消失(它不穩定)。但這只是在Jsfiddle。當我從桌面上看它時,我根本沒有看到箭頭 – Youss