Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/361.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jquery用于图像和视频幻灯片的数组_Javascript_Jquery_Html - Fatal编程技术网

Javascript jquery用于图像和视频幻灯片的数组

Javascript jquery用于图像和视频幻灯片的数组,javascript,jquery,html,Javascript,Jquery,Html,我需要一个jquery插件,它可以容纳HTML代码中的图像和视频,并在幻灯片中显示它们。下面是我分别包含图像和视频数据的代码(我也可以将它们组合在一起) 提前感谢您认为这是django的问题吗?我们在后端使用django,如for循环所示,但我删除了django <div id="slideshow1" class="data"> {% for item in variable_data %} <img src={{item}}

我需要一个jquery插件,它可以容纳HTML代码中的图像和视频,并在幻灯片中显示它们。下面是我分别包含图像和视频数据的代码(我也可以将它们组合在一起)


提前感谢

您认为这是django的问题吗?我们在后端使用django,如for循环所示,但我删除了django
 <div id="slideshow1" class="data">
        {% for item in variable_data %}
               <img src={{item}} width="800" height="600">
               <video id="MY_VIDEO_1" controls autoplay width="800" height="600" >
               <source src={{item}} type='video/mp4'>
        </video>
        {% endfor %}
 </div>
$('#slideshow1').cycle({ 
    fx:     'shuffle', 
    easing: 'easeOutBack', 
    delay:  -4000 
});