$("document").ready(function(){ $(".nav > li").hover(function(){ $(this).addclass("on"); $(this).children("div").stop(true,true).slidedown("fast"); },function(){ $(this).removeclass("on"); $(this).children("div").stop(true,true).slideup("fast"); }) $("#navchild a:last-child ").css("border-bottom","none") $(".proclalist li:nth-child(2n)").css("margin-right","0px"); $(".prolistpic ul li").hover(function(){ $(this).find(".pichover").stop(true,true).fadein("slow"); },function(){ $(this).find(".pichover").stop(true,true).fadeout("slow"); }); $(".prolistpic .first").hover(function(){ $(this).find(".firsthover").stop(true,true).fadein("slow"); },function(){ $(this).find(".firsthover").stop(true,true).fadeout("slow"); }); $(".prolistpic li:nth-child(3n)").css("margin-right","0px"); $(".casepic li:last-child").css("margin-right","0px"); $(".leftproclalist > li ").click(function(){ $(this).next("ul").slidetoggle(); $(this).toggleclass("open"); }); $(".leftproclalist > li ").hover(function(){ $(this).toggleclass("on"); }); $(".leftproclalist > ul > li ").hover(function(){ $(this).toggleclass("on"); }); //$('.codepic').hover(function(){$('.code').fadein()},function(){$('.code').fadeout()}); $('.backup').click(function(){ $('body,html').animate({scrolltop:0},500) }); $(".backup").hide(); $(function() { $(window).scroll(function(){ if ($(window).scrolltop()>500){ $(".backup").fadein(1000); }else{ $(".backup").fadeout(1000); } }); }); /* end index jq */ $(".pic1:nth-child(3n)").css("margin-right","0"); $(".mainconlist .pic1 .dt").hover(function(){ $(this).find(".pic1hover").stop(true,true).fadein("slow"); },function(){ $(this).find(".pic1hover").stop(true,true).fadeout("slow"); }); $(".pic2:last-child a").css("border-bottom","none"); $(".mainconlist ul li:last-child").css("border-bottom","none"); $(".pglist ul li").not(".on").not(".last").not(".next").hover(function(){ $(this).addclass("on");},function(){$(this).removeclass("on");}) $(".pglist ul li.last").hover(function(){ $(this).css({background:"url(images/lastbg2.jpg) 6px center no-repeat #4d95c5",border:"1px solid #98c9ea"}).find("a").css({color:"#fff"}); },function(){ $(this).css({background:"url(images/lastbg.jpg) 6px center no-repeat #ffffff",border:"1px solid #98c9ea"}).find("a").css({color:"#4d95c5"}); }) $(".pglist ul li.next").hover(function(){ $(this).css({background:"url(images/nextbg2.jpg) 56px center no-repeat #4d95c5",border:"1px solid #98c9ea"}).find("a").css({color:"#fff"}); },function(){ $(this).css({background:"url(images/nextbg.jpg) 56px center no-repeat #ffffff",border:"1px solid #98c9ea"}).find("a").css({color:"#4d95c5"}); }) $(".pglist ul li.font").hover(function(){ $(this).css({background:"#ffffff",color:"#4d95c5",border:"none"});}) }); //导航定位 function dingwei(){ var nav = document.getelementbyid("nav"); var links = nav.getelementsbytagname("li"); var lilen =$("#nav").find("li"); var st2=new array(); var str1=new array(); var urrenturl = document.location.href; st2= urrenturl.split("_") var last = 0; for (var i=0;i