$(document).ready(function(){ $(".select_box").hover(function(){ $(this).children("a").addclass("active") $(".my_box").show(); },function(){ $(this).children("a").removeclass("active") $(".my_box").hide(); }); }); /*$(document).ready(function(){ $(".pro_wid.pos1").stop(true).animate({"top":"14%","left":"6%","opacity":"1"},1200) $(".pro_wid.pos2").stop(true).animate({"top":"38%","left":"16%","opacity":"1"},1000) $(".pro_wid.pos3").stop(true).animate({"top":"25%","left":"26%","opacity":"1"},800) $(".pro_wid.pos4").stop(true).animate({"top":"10%","left":"43%","opacity":"1"},900) $(".pro_wid.pos5").stop(true).animate({"top":"32%","left":"46%","opacity":"1"},900) $(".pro_wid.pos6").stop(true).animate({"top":"15%","right":"22%","opacity":"1"},800) $(".pro_wid.pos7").stop(true).animate({"top":"44%","right":"27%%","opacity":"1"},1000) })*/ $(document).ready(function(){ $(".new_ul3 ul li").hover(function(){ $(this).find(".out").hide(); $(this).find(".over").show(); } ,function(){ $(this).find(".over").hide(); $(this).find(".out").show(); }) }) $(document).ready(function () { $('.zp_tab table tr.zp_box').click(function(){ if($(this).next('.zp_lista').css('display') == "none"){ $(".zp_lista").hide(); $(this).siblings('.active').removeclass("active") $(this).addclass("active") $(this).next(".zp_lista").show(); } else{ $(this).removeclass("active") $(this).next(".zp_lista").hide(); } }); }) function settab(name,cursel,n){ for(i=1;i<=n;i++){ var menu=document.getelementbyid(name+i); var con=document.getelementbyid("con_"+name+"_"+i); menu.classname=i==cursel?"hover":""; con.style.display=i==cursel?"block":"none"; } } function settabed(name,cursel,n){ for(i=1;i<=n;i++){ var menu=document.getelementbyid(name+i); menu.classname=i==cursel?"hover":""; } } $(function(){ $(".company").hover(function (){ $(".com_list").stop(true, true).slidedown(); },function (){ $(".com_list").stop(true, true).slideup(); }); }); $(function(){ $("#sidefix ul li.fd1").hover(function(){ $(this).children("a").addclass("hover") $(".ewm_pic").show(); },function(){ $(this).children("a").removeclass("hover") $(".ewm_pic").hide(); }); }); $(function(){ $(".pro_wid").hover(function(){ $(this).addclass("zindex") $(this).find(".pro_zk").show(); },function(){ $(this).removeclass("zindex") $(this).find(".pro_zk").hide(); }); }); $(function(){ $(".case_ul ul li").hover(function (){ $(this).find(".botm_box").stop(true).animate({"bottom": "0px"},300); },function (){ $(this).find(".botm_box").stop(true).animate({"bottom": "-46px"},300); }); }); $(function(){ $(".pic_ul ul li").hover(function (){ $(this).find(".botm_box2").stop(true).animate({"bottom": "0px"},300); },function (){ $(this).find(".botm_box2").stop(true).animate({"bottom": "-40px"},300); }); }); $(function(){ $('.tit').click(function(){ if($(this).next('.zp_list').css('display') === "none"){ $(this).next('.zp_list').slidedown(); $(this).attr('class','tit t'); } else{ $(this).next('.zp_list').slideup(); $(this).attr('class','tit'); } return false; }); }); // javascript document $(function (){ //banner banner(); //图片滚动 }); function banner(){ var iwidth=$(".bigpic").innerwidth(); //图片宽度 var btimer=null; var inow=0; var iinterval=6000; $(".bannerbg").hover(function (){ clearinterval(btimer); }, function (){ btimer=setinterval(fnbanner, iinterval); }); $(".bigpic a:first").nextall().css("left", iwidth); $(".bigpic a").css("position", "absolute"); $(".smallpic").find("a").hover(function (){ $(this).addclass("active").find("img").show().end().stop(true, true).animate({"height": "43px"}, 200); }, function (){ $(this).removeclass("active").find("img").hide().end().stop(true, true).animate({"height": "0"}, 200); }); $(".smallpic").find("a").click(function (){ var $index=$(".smallpic").find("a").index($(this)); var obj=$(".bigpic a").eq($index); if($index>inow){ obj.css({"left": iwidth}).css({"z-index": "0"}); $(".bigpic a").eq(inow).animate({"left": -iwidth}, 600); obj.animate({"left": 0}, 500); } else if($index