Галерея.
function theRotator() { // ������������� ������������ ���� �������� � 0 $('div#rotator ul li').css({opacity: 0.0}); // ����� ������ �������� � ���������� �� (�� ���� �������� ������ ���������) $('div#rotator ul li:first').css({opacity: 1.0}); // �������� ������� rotate ��� ������� ��������, 5000 = ����� �������� ���������� ��� � 5 ������ setInterval('rotate()',4000); } function rotate() { // ����� ������ �������� var current = ($('div#rotator ul li.show')? $('div#rotator ul li.show') : $('div#rotator ul li:first')); // ����� ��������� ��������, ����� ������ �� ��������� �������� � ������ var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator ul li:first') :current.next()) : $('div#rotator ul li:first')); // �����������������, ����� ��������� �������� � ��������� ������� // var sibs = current.siblings(); // var rndNum = Math.floor(Math.random() * sibs.length ); // var next = $( sibs[ rndNum ] ); // ���������� ������ �����������/��������� ��� ������ ��������, css-����� show ����� ������� z-index next.css({opacity: 0.0}) .addClass('show') .animate({opacity: 1.0}, 3000); // ������ ������� �������� current.animate({opacity: 0.0}, 3000) .removeClass('show'); }; $(document).ready(function() { // ��������� �������� theRotator(); }); function theRotator2() { // ������������� ������������ ���� �������� � 0 $('div#rotator2 ul li').css({opacity: 0.0}); // ����� ������ �������� � ���������� �� (�� ���� �������� ������ ���������) $('div#rotator2 ul li:first').css({opacity: 1.0}); // �������� ������� rotate ��� ������� ��������, 5000 = ����� �������� ���������� ��� � 5 ������ setInterval('rotate2()',4000); } function rotate2() { // ����� ������ �������� var current = ($('div#rotator2 ul li.show')? $('div#rotator2 ul li.show') : $('div#rotator2 ul li:first')); // ����� ��������� ��������, ����� ������ �� ��������� �������� � ������ var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator2 ul li:first') :current.next()) : $('div#rotator2 ul li:first')); // �����������������, ����� ��������� �������� � ��������� ������� // var sibs = current.siblings(); // var rndNum = Math.floor(Math.random() * sibs.length ); // var next = $( sibs[ rndNum ] ); // ���������� ������ �����������/��������� ��� ������ ��������, css-����� show ����� ������� z-index next.css({opacity: 0.0}) .addClass('show') .animate({opacity: 1.0}, 3000); // ������ ������� �������� current.animate({opacity: 0.0}, 3000) .removeClass('show'); }; $(document).ready(function() { // ��������� �������� theRotator2(); }); jsHover = function() { var hEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0, len=hEls.length; i
* * @param img объект изображения * @param width ширина превью * @param height высота превью */ function thumb(img, width, height) { var x_ratio = width / img.width; var y_ratio = height / img.height; var ratio = Math.min(x_ratio, y_ratio); var use_x_ratio = x_ratio
МИНЕРАЛЬНЫЕ ВОДЫ
ГЛАВНАЯ
ПРИГЛАШЕНИЯ
Свадьба
Юбилей
Корпоратив
Детский праздник
Рассадочные открытки
ERDEM INVITATION
KRISTAL INVITATION
EKONOM INVITATIONS
BUSINESS CARDS
Скидки
ДОСТАВКА
ПАРТНЕРАМ
НАШИ КОНТАКТЫ
Parse error
: syntax error, unexpected $end in
/home/m/malinaroru/erdem/public_html/wp-content/themes/erdem/gallery.php
on line
5