新年
快乐
jQuery仿京东商城手机端商品分类滑动切换特效

jQuery仿京东商城手机端商品分类滑动切换特效

jQuery仿京东商城手机端商品分类滑动切换特效插图

一款仿京商城东手机移动端商品图片分类导航滑动效果,jQuery商品二级分类菜单切换特效。

js代码

<script type="text/javascript">
//设置cookie
function setCookie(cname, cvalue, exdays) {
    var d = new Date();
    d.setTime(d.getTime() + (exdays*24*60*60*1000));
    var expires = "expires="+d.toUTCString();
    document.cookie = cname + "=" + cvalue + "; " + expires;
}
function clearHistroy(){
	setCookie("ECS[keywords]", "", -1);
	document.getElementById("search_histroy").style.visibility = "hidden";
}
</script> 
<script src="https://img.x22t.com/file/2020/04/25/49f0d64d9b51043f3d949a95fad318af4759.js"></script>
<script type="text/javascript" src="https://img.x22t.com/file/2020/04/25/b0690a7583889a7606d67d39f807285a7012.js"></script> 
<script type="text/javascript" src="https://img.x22t.com/file/2020/04/25/7f9739bfe1b489a493e920d3b5db5f661905.js"></script> 
<script type="text/javascript" src="https://img.x22t.com/file/2020/04/25/af87cf25dbe7f422f8039811d79504df6657.js"></script> 
<script type="text/javascript" src="https://img.x22t.com/file/2020/04/25/67c783fa38886c321ad438195b27fa549065.js"></script> 
<script type="text/javascript">
	$(function($){
		$("#sidebar ul li").click(function(){
			$(this).addClass("active").siblings("li").removeClass("active");
			var index = $(this).index();
			$(".j-content").eq(index).show().siblings(".j-content").hide();
		})
	})
</script>

分享到 :
相关推荐

Leave a Reply

Your email address will not be published. Required fields are marked *