|
@@ -365,73 +365,73 @@
|
|
// }).init();
|
|
// }).init();
|
|
// }
|
|
// }
|
|
|
|
|
|
- $('#carousel-homebanner').on('slid.bs.carousel', function() {
|
|
|
|
- var ind = $('#carousel-homebanner .item').index($('#carousel-homebanner .item.active'));
|
|
|
|
- $('.ui-homebanner .navi a').removeClass('on');
|
|
|
|
- $('.ui-homebanner .navi a').eq(ind).addClass('on');
|
|
|
|
- });
|
|
|
|
- $('.ui-homebanner .navi a').click(function(event) {
|
|
|
|
- var ind = $('.ui-homebanner .navi a').index($(this));
|
|
|
|
- $('#carousel-homebanner').carousel(ind);
|
|
|
|
- return false;
|
|
|
|
- });
|
|
|
|
|
|
+// $('#carousel-homebanner').on('slid.bs.carousel', function() {
|
|
|
|
+// var ind = $('#carousel-homebanner .item').index($('#carousel-homebanner .item.active'));
|
|
|
|
+// $('.ui-homebanner .navi a').removeClass('on');
|
|
|
|
+// $('.ui-homebanner .navi a').eq(ind).addClass('on');
|
|
|
|
+// });
|
|
|
|
+// $('.ui-homebanner .navi a').click(function(event) {
|
|
|
|
+// var ind = $('.ui-homebanner .navi a').index($(this));
|
|
|
|
+// $('#carousel-homebanner').carousel(ind);
|
|
|
|
+// return false;
|
|
|
|
+// });
|
|
|
|
|
|
- $('.lrlist').each(function(index, el) {
|
|
|
|
- var $this = $(this);
|
|
|
|
- var $aw = $this.find('.aw');
|
|
|
|
-
|
|
|
|
- $aw.click(function(event) {
|
|
|
|
- if($this.find('ul').is(':animated')) {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- var next = true;
|
|
|
|
- if($(this).hasClass('l')) {
|
|
|
|
- next = false;
|
|
|
|
- }
|
|
|
|
- var $next;
|
|
|
|
- var w = $this.find('li').width();
|
|
|
|
- if(next) {
|
|
|
|
- $next = $this.find('li').first().clone();
|
|
|
|
- $next.appendTo($this.find('ul'));
|
|
|
|
- $this.find('ul').animate({
|
|
|
|
- 'left': -1 * w
|
|
|
|
- }, 300, function() {
|
|
|
|
- $this.find('li').first().remove();
|
|
|
|
- $this.find('ul').css('left', 0);
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- $next = $this.find('li').last().clone();
|
|
|
|
- $next.prependTo($this.find('ul'));
|
|
|
|
- $this.find('ul').css('left', -1 * w);
|
|
|
|
- $this.find('ul').animate({
|
|
|
|
- 'left': 0
|
|
|
|
- }, 300, function() {
|
|
|
|
- $this.find('li').last().remove();
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- clearInterval(t);
|
|
|
|
- t = setInterval(function() {
|
|
|
|
- go();
|
|
|
|
- }, 5000);
|
|
|
|
-
|
|
|
|
- $('.ui-prodhead .view >.ct .i').hover(function() {
|
|
|
|
- $(this).click();
|
|
|
|
- });
|
|
|
|
- return false;
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- var go = function() {
|
|
|
|
- if($this.hasClass('noauto')) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- $aw.filter('.r').click();;
|
|
|
|
- }
|
|
|
|
- var t = setInterval(function() {
|
|
|
|
- go();
|
|
|
|
- }, 5000);
|
|
|
|
- });
|
|
|
|
|
|
+// $('.lrlist').each(function(index, el) {
|
|
|
|
+// var $this = $(this);
|
|
|
|
+// var $aw = $this.find('.aw');
|
|
|
|
+//
|
|
|
|
+// $aw.click(function(event) {
|
|
|
|
+// if($this.find('ul').is(':animated')) {
|
|
|
|
+// return false;
|
|
|
|
+// }
|
|
|
|
+// var next = true;
|
|
|
|
+// if($(this).hasClass('l')) {
|
|
|
|
+// next = false;
|
|
|
|
+// }
|
|
|
|
+// var $next;
|
|
|
|
+// var w = $this.find('li').width();
|
|
|
|
+// if(next) {
|
|
|
|
+// $next = $this.find('li').first().clone();
|
|
|
|
+// $next.appendTo($this.find('ul'));
|
|
|
|
+// $this.find('ul').animate({
|
|
|
|
+// 'left': -1 * w
|
|
|
|
+// }, 300, function() {
|
|
|
|
+// $this.find('li').first().remove();
|
|
|
|
+// $this.find('ul').css('left', 0);
|
|
|
|
+// });
|
|
|
|
+// } else {
|
|
|
|
+// $next = $this.find('li').last().clone();
|
|
|
|
+// $next.prependTo($this.find('ul'));
|
|
|
|
+// $this.find('ul').css('left', -1 * w);
|
|
|
|
+// $this.find('ul').animate({
|
|
|
|
+// 'left': 0
|
|
|
|
+// }, 300, function() {
|
|
|
|
+// $this.find('li').last().remove();
|
|
|
|
+// });
|
|
|
|
+//
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// clearInterval(t);
|
|
|
|
+// t = setInterval(function() {
|
|
|
|
+// go();
|
|
|
|
+// }, 5000);
|
|
|
|
+//
|
|
|
|
+// $('.ui-prodhead .view >.ct .i').hover(function() {
|
|
|
|
+// $(this).click();
|
|
|
|
+// });
|
|
|
|
+// return false;
|
|
|
|
+// });
|
|
|
|
+//
|
|
|
|
+// var go = function() {
|
|
|
|
+// if($this.hasClass('noauto')) {
|
|
|
|
+// return;
|
|
|
|
+// }
|
|
|
|
+// $aw.filter('.r').click();;
|
|
|
|
+// }
|
|
|
|
+// var t = setInterval(function() {
|
|
|
|
+// go();
|
|
|
|
+// }, 5000);
|
|
|
|
+// });
|
|
|
|
|
|
});
|
|
});
|
|
//页面转载完毕后启动
|
|
//页面转载完毕后启动
|