<script type="text/javascript" src="//vk.com/js/api/openapi.js?105"></script> <script type="text/javascript"> VK.init({apiId: 3927194, onlyWidgets: true}); </script> <div id="vk_recommended"></div> <script type="text/javascript"> VK.Widgets.Recommended("vk_recommended", {limit: 3}); </script>
Карусель (Слайдер) Сопутки
#21
Отправлено 14 Январь 2014 - 02:53
#22
Отправлено 14 Январь 2014 - 06:39
Сake (14 Январь 2014 - 02:53) писал:
<script type="text/javascript" src="//vk.com/js/api/openapi.js?105"></script> <script type="text/javascript"> VK.init({apiId: 3927194, onlyWidgets: true}); </script> <div id="vk_recommended"></div> <script type="text/javascript"> VK.Widgets.Recommended("vk_recommended", {limit: 3}); </script>
Посмотрела на 3х устройствах, везде одинаково и никаких ошибок не выдаёт.
Данный виджет вк был добавлен после проб установки карусели, навряд ли он влияет, но его сейчас нет.
Вот посмотрите как всё отображается http://keksik-bijou....-Arven-Evenstar
#23
Отправлено 15 Январь 2014 - 00:46
#24
Отправлено 15 Январь 2014 - 03:28
Сake (15 Январь 2014 - 00:46) писал:
Что не так?
keksik-bijou.ru/goods/Kulon-Arven-Evenstar
#25
Отправлено 16 Январь 2014 - 00:29
{% IFNOT related_views_goods.last %}{related_views_goods.index | is_divided("5","</tr><tr>","")}{% ENDIF %}
данное изменение должно помочь выровнять структуру и карусель должна заработать корректно. Каких-то дополнительных проблем обнаружить не удалось.
#26
Отправлено 16 Январь 2014 - 10:06
Сake (16 Январь 2014 - 00:29) писал:
{% IFNOT related_views_goods.last %}{related_views_goods.index | is_divided("5","</tr><tr>","")}{% ENDIF %}
данное изменение должно помочь выровнять структуру и карусель должна заработать корректно. Каких-то дополнительных проблем обнаружить не удалось.
но сам слайдер надо поправить, как сделать чтобы картинка отображалась полностью? и одновременно показывалось 4 картинки, ну чтобы по ширине было и чтобы товары в карусели прокатывались на один товар через 1-2 секунды?
на прикреплённой картинке посмотрите: у данного товара на картинке 6 картинок, а не 4 и в общем ватемарка располагается наверху посередине картинки
#27
Отправлено 17 Январь 2014 - 03:30
.d-carousel .jcarousel-container-horizontal { width: 660px !important; } .d-carousel .goodsListItemBlock { border: none !important; width: auto !important; }
после найдите в шаблоне "Товар" следующий код
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1 }); }); </script>
и замените его на код
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2000 }); }); </script>
#28
Отправлено 17 Январь 2014 - 08:33
Сake (17 Январь 2014 - 03:30) писал:
.d-carousel .jcarousel-container-horizontal { width: 660px !important; } .d-carousel .goodsListItemBlock { border: none !important; width: auto !important; }
после найдите в шаблоне "Товар" следующий код
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1 }); }); </script>
и замените его на код
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2000 }); }); </script>
#29
Отправлено 17 Январь 2014 - 12:15
<div class="goodsListItemImage"><a href="{related_views_goods.URL}"><img class="goods-image-small" src="{% IF related_views_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png{% ELSE %}{related_views_goods.IMAGE_SMALL}{% ENDIF %}" alt="{related_views_goods.NAME}" /></a></div>и замените ее на
<div class="goodsListItemImage"><a href="{related_views_goods.URL}"><img class="goods-image-small" src="{% IF related_views_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png{% ELSE %}{related_views_goods.IMAGE_SMALL}{% ENDIF %}" alt="{related_views_goods.NAME}" style="max-width:140px; max-height:140px;" /></a></div>
Чтобы карусель крутилась сама через 1-2 секунды в том же шаблоне найдите блок
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2000 }); }); </script> <!-- Begin Wrapper -->и замените его на
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2 }); }); </script> <!-- Begin Wrapper -->
#30
Отправлено 17 Январь 2014 - 13:51
Stasya (17 Январь 2014 - 12:15) писал:
<div class="goodsListItemImage"><a href="{related_views_goods.URL}"><img class="goods-image-small" src="{% IF related_views_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png{% ELSE %}{related_views_goods.IMAGE_SMALL}{% ENDIF %}" alt="{related_views_goods.NAME}" /></a></div>и замените ее на
<div class="goodsListItemImage"><a href="{related_views_goods.URL}"><img class="goods-image-small" src="{% IF related_views_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png{% ELSE %}{related_views_goods.IMAGE_SMALL}{% ENDIF %}" alt="{related_views_goods.NAME}" style="max-width:140px; max-height:140px;" /></a></div>
Чтобы карусель крутилась сама через 1-2 секунды в том же шаблоне найдите блок
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2000 }); }); </script> <!-- Begin Wrapper -->и замените его на
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2 }); }); </script> <!-- Begin Wrapper -->
#31
Отправлено 22 Февраль 2014 - 15:12
empty9228 (09 Октябрь 2013 - 09:24) писал:
Зайдите редактор шаблонов - HTML после кода
...
сделал всё по инструкции, вот что выдаёт после.. .пока вернул как было
Цитата
Uncaught TypeError: Object # has no method 'jcarousel' на строке: 649.
#32
Отправлено 22 Февраль 2014 - 15:21
Сake (11 Январь 2014 - 03:43) писал:
всё как нужно
Цитата
<script type="text/javascript" src="{ASSETS_JS_PATH}main.js"></script>
<script type="text/javascript" src="{ASSETS_JS_PATH}jquery.jcarousel.js"></script>
<link rel="stylesheet" href="{ASSETS_STYLES_PATH}carousel.css" type="text/css" />
<!-- Загрузка Jquery галереии Nyvo Slider -->
#33
Отправлено 25 Февраль 2014 - 04:36
#34
Отправлено 12 Май 2014 - 15:52
Stasya (17 Январь 2014 - 12:15) писал:
<div class="goodsListItemImage"><a href="{related_views_goods.URL}"><img class="goods-image-small" src="{% IF related_views_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png{% ELSE %}{related_views_goods.IMAGE_SMALL}{% ENDIF %}" alt="{related_views_goods.NAME}" /></a></div>и замените ее на
<div class="goodsListItemImage"><a href="{related_views_goods.URL}"><img class="goods-image-small" src="{% IF related_views_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png{% ELSE %}{related_views_goods.IMAGE_SMALL}{% ENDIF %}" alt="{related_views_goods.NAME}" style="max-width:140px; max-height:140px;" /></a></div>
Чтобы карусель крутилась сама через 1-2 секунды в том же шаблоне найдите блок
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2000 }); }); </script> <!-- Begin Wrapper -->и замените его на
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2 }); }); </script> <!-- Begin Wrapper -->
Подскажите пожалуйста как данную карусель запустить по кругу, тоесть она перемещает товары влево но как доходит до последнего так останавливается, как бы её заставить опять с первого товара начать проход или проход влево до конца и затем вправо до конца тоесть туда сюда?
#35
Отправлено 13 Май 2014 - 01:35
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2 }); }); </script> <!-- Begin Wrapper -->попробуйте заменить на:
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2, carousel: carousel }); }); </script> <!-- Begin Wrapper -->
#36
Отправлено 13 Май 2014 - 14:45
Vaccina (13 Май 2014 - 01:35) писал:
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2 }); }); </script> <!-- Begin Wrapper -->попробуйте заменить на:
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2, carousel: carousel }); }); </script> <!-- Begin Wrapper -->
Не получилось, на странице товара сразу ошибка скрипта и пропадает карусель, товар из карусели показывается в столбик по два товара в строчке выстраиваются
#37
Отправлено 14 Май 2014 - 03:33
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2 }); }); </script> <!-- Begin Wrapper -->замените на:
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2, wrap: 'circular' }); }); </script> <!-- Begin Wrapper -->
#38
Отправлено 14 Май 2014 - 14:58
Vaccina (14 Май 2014 - 03:33) писал:
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2 }); }); </script> <!-- Begin Wrapper -->замените на:
<script type="text/javascript"> jQuery(document).ready(function() { // Initialise the first and second carousel by class selector. // Note that they use both the same configuration options (none in this case). jQuery('.d-carousel .carousel').jcarousel({ scroll: 1, auto: 2, wrap: 'circular' }); }); </script> <!-- Begin Wrapper -->
Спасибо всё вышло, единственное, в процессе когда движется карусель по второму кругу, изоброжение на каждом товаре смещается влево, можно как то поправить?
#39
Отправлено 14 Май 2014 - 15:12
dfysdbu (14 Май 2014 - 14:58) писал:
В main.css найдите код:
.goodsListItemImage img { border-radius: 10px; }
и замените его на:
.goodsListItemImage img { border-radius: 10px; margin: 0 auto; display: block; }
#40
Отправлено 30 Май 2014 - 08:43
уже все значения пересмотрела, но все равно на втором круге сужается, у получается что все товары смещаются.
SL-268427
Количество пользователей, читающих эту тему: 0
0 пользователей, 0 гостей, 0 анонимных