// import '../../css/bootstrap.less'; import 'bootstrap/dist/js/bootstrap.js'; import '../../css/public.css'; import '../../css/main_banner.css'; import '../../js/public.js'; import '../../js/main_banner.js'; import '../../css/financial/investmentDetail.css'; $(function(){ var k=0; var liwit=$('.need_imgs ol li').width(); var lilengths=$('.need_imgs ol li').length; function next(){ k++; if(k>lilengths-6){ k=0 } $('.need_imgs ol').animate({'marginLeft':-(liwit)*k},2000) }; $('.need_next').click(function(){ next() }); $('.need_prev').click(function(){ k--; if(k<0){ k=lilengths-6 } $('.need_imgs ol').animate({'marginLeft':-(liwit)*k},2000) }); var timer =setInterval(function(){ next(); },2000); $('.list_imgs').hover(function(){ clearInterval(timer) },function(){ timer =setInterval( function(){ next(); },2000) }); })