2020-10-07

    科技2024-05-23  79

    文字大框折叠 $(function () { $(".module_up_down").toggle(function () { //toggle依次执行方法 var $this = $(this); $this.prev().slideToggle("slow", function () { $("img",$this).attr("src","images/up.gif"); }); },function(){ var $this = $(this); $this.prev().slideToggle("slow", function () { $("img",$this).attr("src","images/down.gif"); }); }) //产品类别折叠 $(".m-treeview >li").click(function(){ var $this=$(this).attr("class"); if($this=="m-collapsed") $(this).attr("class","m-expanded"); else if($this=="m-expanded") $(this).attr("class","m-collapsed"); }) //商品向左移动 var index=0; $(".goLeft").click(function(){ index++; if (index>=3) { index=0; } $(".prolist_content").animate({ "left":(-548)*index+"px" }); }) //向右移动 $(".goRight").click(function(){ index--; if(index<0){ index=2; } $(".prolist_content").animate({ "left":(-548)*index+"px" }); }) })

    轮播图 KaTeX parse error: Expected '}', got 'EOF' at end of input: …){ var lang=(".num>li").length; var index=0; var adtimer; $(".num li:first").addClass(“on”); KaTeX parse error: Expected '}', got 'EOF' at end of input: …n(){ index=(".num li").index(this); clearInterval(adtimer); showImg(index); }).eq(0).mouseover(); KaTeX parse error: Expected '}', got 'EOF' at end of input: …n(){ index=(".num li").index(this); showImg(index); },function(){ adtimer=setInterval(function(){ showImg(index); index++; if(index==lang){ index=0; } },1000); }) })

    Processed: 0.011, SQL: 8