0
나는 내 웹 페이지에 Galleria autoplay를 가지고 있습니다 : http://www.clickclack.cz/. YouTube 동영상 제목을 추가하고 싶습니다 (YouTube 동영상 만 있습니다). 어떻게 도와 줄 수 있니?jQuery 갤러리아 - 자동 재생에 youtube 비디오 타이틀을 추가하는 방법
내 설정 위치 :
$(function() {
Galleria.loadTheme('galleria/themes/classic/galleria.classic.min.js');
Galleria.run('#galleria', {
_toggleInfo: false,
extend: function() {
var gallery = this;
gallery.play();
var paused = 0;
this.$('stage').hover(function() {
if (paused) {
$(this).data('overTime', '1');
} else {
paused = 1;
gallery.pause();
$(this).data('overTime', new Date().getTime());
}
}, function() {
var outTime = new Date().getTime();
var hoverTime = (outTime - $(this).data('overTime'))/1000;
if (hoverTime < 0.5) { // restart slideshow if hover under 0.5 seconds
paused = 0;
gallery.play();
}
});
}
});
});