Php 不要在带有其他图像的转盘中使用自动播放
在opencart 2.3.0.2中有一个图像和其他图像 我为图像重新更改旋转木马,并希望将自己的图片和附加图片一起制作,并制作此Php 不要在带有其他图像的转盘中使用自动播放,php,owl-carousel,opencart2.3,Php,Owl Carousel,Opencart2.3,在opencart 2.3.0.2中有一个图像和其他图像 我为图像重新更改旋转木马,并希望将自己的图片和附加图片一起制作,并制作此 <?php if ($thumb || $images) { ?> <div class="thumbnails"> <div class="image"> <?php if ($thumb) { ?> <div class="item">
<?php if ($thumb || $images) { ?>
<div class="thumbnails">
<div class="image">
<?php if ($thumb) { ?>
<div class="item">
<a class="thumbnail" href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
</div>
<?php } ?>
<?php if ($images) { ?>
<?php foreach ($images as $image) { ?>
<div class="item">
<a class="thumbnail" href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>"> <img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
产品的所有部分都放在旋转木马中,但我想制作autostart,而他的产品不起作用。这里怎么了?您可以试试这个
autoplay:true,
autoplayTimeout:1000,
把这两行加起来。而不是自动播放:1000,
$('.image').owlCarousel({
items: 1,
navigation: true,
pagination: true,
autoplay:true, //Add This Line
autoplayTimeout:1000, //Add This Line
//autoplay: 1000, //Remove This Line
itemsDesktop : [1199,1],
itemsDesktopSmall : [991,1],
itemsTablet : [650,1],
itemsMobile : [479,1]
});
不,有任何错误,导航有,分页有,但自动播放不起作用
$('.image').owlCarousel({
items: 1,
navigation: true,
pagination: true,
autoplay:true, //Add This Line
autoplayTimeout:1000, //Add This Line
//autoplay: 1000, //Remove This Line
itemsDesktop : [1199,1],
itemsDesktopSmall : [991,1],
itemsTablet : [650,1],
itemsMobile : [479,1]
});