我正在使用flexslider作为我的幻灯片,它似乎正在工作,但它没有拾取所有图像。
这是代码:
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
animationLoop: true,
slideshow: true,
startAt:0,
initDelay:0,
randomize: true
});
});
</script>
<div class="flexslider">
<ul class="slides">
<?php
foreach ($dataAttachments as $attachment) {
?>
<li>
<img src="<?php echo Calling the image directory; ?>" />
</li>
<?php
} ?>
</ul>
</div>
到目前为止我的代码就是这样......有什么东西可以让我失踪吗?
感谢你