//焦点图轮播 $(function(){ $('#focus').hover( function(){ $(".f_sel").show(); },function(){ $(".f_sel").hide(); }) $('#focus .focusbg,#n_focus .focusbg').after($('
')); $("#focus .focuslist") .cycle({ fx: 'fade', activePagerClass: 'active', speed: 500, timeout: 3000, pause: 1, pager: '#f_Handler', pagerEvent: 'click', next: '#next', prev: '#prev', pauseOnPagerHover: 0, cleartypeNoBg: true, pagerAnchorBuilder: function(idx, slide){ return '' + ''; } }); $("#n_focus .focuslist") .cycle({ fx: 'scrollLeft', activePagerClass: 'active', speed: 500, timeout: 3000, pause: 1, pager: '#f_Handler', pagerEvent: 'click', pauseOnPagerHover: 0, cleartypeNoBg: true, pagerAnchorBuilder: function(idx, slide){ return '' + ''; } }); $("#m_focus .focuslist") .cycle({ fx: 'scrollUp', activePagerClass: 'active', speed: 200, timeout: 3000, pause: 1, pager: '#f_Handler', pagerEvent: 'click', pauseOnPagerHover: 0, cleartypeNoBg: true, pagerAnchorBuilder: function(idx, slide){ return '' + ''; } }); }) //换一换 $(function(){ var len= $(".listline").length; var index=0; var n = $(".listline"); $(".listline").eq(0).addClass("active").animate({ opacity: "1", filter: "alpha(opacity=100)" },800); $(".reload").click(function(){ index += 1; if(index == len){ index=0; } showlines(index); }) function showlines(){ $(".listline").eq(index).addClass("active").animate({ opacity: "1", filter: "alpha(opacity=100)" },800).siblings().removeClass("active").animate({ opacity: "0", filter: "alpha(opacity=0)" },800); } }) //切换 $(function(){ var dts = $(".tabs li"); var tabCons = $(".cons"); var i = tabCons.length; dts.hover(function() { i = $(this).index(); dts.removeClass("active").eq(i).addClass("active"); tabCons.hide().eq(i).show(); }) }) $(function(){ var dts = $(".tab li"); var tabCons = $(".con"); var i = tabCons.length; dts.hover(function() { i = $(this).index(); dts.removeClass("active").eq(i).addClass("active"); tabCons.hide().eq(i).show(); }) }) $(function(){ $(".navlistbox dt").each(function() { $(this).find("a:eq(0)").hover(function(){ console.log($(this).index()); $(this).parent("dt").siblings("dd").show(); },function(){ $(this).parent("dt").siblings("dd").hide(); }) }); })