document.write(""); document.write("
"); aa1li_width=259;/*设置一个li元素的宽度*/ aa1ul="#aa1 >ul";/*设置ul*/ aa1li_number=$(aa1ul+">li").length; aa1ul_width=aa1li_number*aa1li_width; $(aa1ul).css("width",aa1ul_width+"px"); $(aa1ul).css("left","0px"); var intaa1=setInterval("aa1to_left_auto()",5000);/*按时间间隔启动*/ aa1banner_i=1; aa1LoadBanner(aa1banner_i); function aa1to_left_auto() { if (aa1banner_i < aa1li_number){ aa1banner_i++; } else{ aa1banner_i=1; } aa1LoadBanner(aa1banner_i); } function aa1LoadBanner(i) { aa1banner_i=i; if(!$(aa1ul).is(":animated")){ $(aa1ul).animate({left:"-"+(i-1)*aa1li_width+"px"},300,'swing'); } $("#aa1 .page a").removeClass("cur"); $("#aa1 .page .a"+i).addClass("cur"); $("#aa1 .page .a"+i).blur(); }