// jquery(".index-banner").slide({ titcell: ".hd li", maincell: ".bd ul", effect: "fold", autoplay: true, delaytime: "1200", intertime: "10000", mouseoverstop: false,/* 鼠标移到容器层继续播放*/ /* 控制进度条 */ startfun: function () { var timer = jquery(".index-banner .timer"); timer.stop(true, true).animate({ "width": "0%" }, 0).animate({ "width": "100%" }, 10000); }, /* 控制图片放大和文字动画 */ endfun: function (i, c) { jquery(".index-banner .tit").css({ "top": "55%", "opacity": 0 }).eq(i).animate({ "top": "50%", "opacity": 1 }); jquery(".index-banner a").css({ "transform": "scale(1)", 'transition': 'transform 5s' }).eq(i).css({ "transform": "scale(1.1)" }); } }); //产品体系 $(function () { //切换 var navli = $(".core-nav li"); navli.click(function () { var thisnavli = $(this); var category_id = $(this).attr("data-id"); var channel_id = $(this).attr("data-channel_id"); //$(".moreall").attr("href", "/product/" + category_id); $(".moreall").attr("href", "/public/" + channel_id + "/" + category_id); var t = thisnavli.index(); thisnavli.addclass("on"); thisnavli.siblings("li").removeclass("on"); $.ajax({ type: "post", url: "/cgi/articlelist", data: { channel_id: 25 , category_id: category_id , top: 5 }, success: function (msg) { var data = json.parse(msg); $(".listdata").html(""); if (data.data.length > 0) { for (var i = 0; i < data.data.length; i++) { var sb_product = "
" + data.data[i].zhaiyao + "
"; sb_product = sb_product + ""); } } } }); }