$(document).ready(function(e) { function stoppropagation(e) { if (e.stoppropagation) e.stoppropagation(); else e.cancelbubble = true; } $(document).bind('click',function(){ $(".foot_top .tanchu").removeclass("active"); }); $(".foot_top ul").bind('click',function(e){ stoppropagation(e); }); $(".foot_top .a1").click(function(){ $(".foot_top .tanchu").removeclass("active"); $(this).parent().find(".tanchu").addclass("active"); }) $(".foot_top .a2").click(function(){ $(".foot_top .tanchu").removeclass("active"); $(this).parent().find(".tanchu").addclass("active"); }) $(".foot_top .a3").click(function(){ $(".foot_top .tanchu").removeclass("active"); $(this).parent().find(".tanchu").addclass("active"); }) //11111111111 var length=$(".circleul1 li").length; var indnum=0; var clicked=1; for(i=0;ilength-1)indnum=0; $(".headimg").animate({"left":"-"+indnum*100+"%"}); $(".circleul1 li").find("div").css({"background":"#e9e6df"}); $(".circleul1 li").eq(indnum).find("div").css({"background":"#1eb848"}); } //222222222 var length2=$(".circleul2 li").length; var indnum2=0; var clicked2=1; for(i=0;ilength2-1)indnum2=0; $(".midimg").animate({"left":"-"+indnum2*100+"%"}); $(".circleul2 li").find("div").css({"background":"#e9e6df"}); $(".circleul2 li").eq(indnum2).find("div").css({"background":"#1eb848"}); } //3333333 var length3=$(".circleul3 li").length; var indnum3=0; var clicked3=1; for(i=0;ilength3-1)indnum3=0; $(".mid2img").animate({"left":"-"+indnum3*100+"%"}); $(".circleul3 li").find("div").css({"background":"#e9e6df"}); $(".circleul3 li").eq(indnum3).find("div").css({"background":"#1eb848"}); } //44444444444 var length4=$(".circleul4 li").length; var indnum4=0; var clicked4=1; for(i=0;i