gusucode.com > 【dema58】响应式品牌包包类网站织梦模板(自适应手机端) > 【dema58】响应式品牌包包类网站织梦模板(自适应手机端)/skin/js/index.js

    jQuery(document).ready(function(){
    /*banner*/
	$('.flexslider').flexslider({
		animation: "slide",
		slideshowSpeed: 4000, 
		animationSpeed: 400, 
		touch: true, 
		directionNav: false
	});

	 /*friend*/
	   $(".friend-link").hover(function(){
		    $(this).parent().find("ul").show();
		},function(){
		    $(this).parent().find("ul").hide();
	   })
});
	
$(window).load(function() {
	/*news*/
	//scrollable-default
	$("#scrollable-186748").carouFredSel({
		width   	: '90%',
		infinite 	: false,
		//circular 	: false,
		auto 	  	: { pauseOnHover: true, timeoutDuration:3500 },
		swipe    	: { onTouch:true, onMouse:true },
		prev 		: { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-prev"); }},
		next 		: { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-next"); }}
	});
	$("#scrollable-186748").parents(".scrollable").css("overflow","visible");

	
	//scrollable-default
	$("#scrollable-185698").carouFredSel({
		width   	: '92%',
		infinite 	: false,
		//circular 	: false,
		auto 	  	: { pauseOnHover: true, timeoutDuration:3000 },
		swipe    	: { onTouch:true, onMouse:true },
		prev 		: { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-prev"); }},
		next 		: { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-next"); }}
	});
	$("#scrollable-185698").parents(".scrollable").css("overflow","visible");
});