我正在将任何滑块与 Jquery UI 手风琴一起使用,当我将幻灯片附加到手风琴内时会出现问题,如下所示:
$( "#accordion" ).accordion({
active: false,
collapsible: true,
heightStyle: "content",
change: function(event, ui) {
var active = $("#accordion").accordion('option','active');
switch(active){
case 0:
$("#slider1").append('<li class="panel1"><iframe src="http://player.vimeo.com/video/18011143?title=0&byline=0&portrait=0" width="600" height="338" frameborder="0"></iframe></li>');
$("#slider1").append('<li class="panel2"><iframe src="http://player.vimeo.com/video/12280336?title=0&byline=0&portrait=0" width="600" height="338" frameborder="0"></iframe></li>');
$('#slider1').anythingSlider();
...
当我浏览幻灯片时,停止工作的事情是暂停(当您在下一张幻灯片上时,视频在后台播放)
如果我用 HTML 编写幻灯片,则暂停效果很好,例如:
<ul id="slider1"> <!-- START AnythingSlider -->
<li class="panel1"><iframe src="http://player.vimeo.com/video/18011143?title=0&byline=0&portrait=0" width="600" height="338" frameborder="0"></iframe></li>
<li class="panel2"><iframe src="http://player.vimeo.com/video/12280336?title=0&byline=0&portrait=0" width="600" height="338" frameborder="0"></iframe></li>
</ul> <!-- END AnythingSlider -->
我希望我说清楚了,任何帮助将是最appriciated,谢谢!