// JavaScript Document $(document).ready(function(){ head_wq_dl(); }); function head_wq_dl(){ var dl = $("#head_wq_dl"); dl.hover(function(){ $(this).find("dd").show(); },function(){ $(this).find("dd").hide(); }); }; $(function () { $(".nav_li").not(":first-child,:eq(5)").hover( function(){ $(this).addClass("nav_li_hover"); $(this).parent().parent().next(".subnavbg").show(); }, function(){ $(this).removeClass("nav_li_hover"); $(this).parent().parent().next(".subnavbg").hide(); } ); $(".h-r-nav").hover( function(){ $(this).addClass("h-r-nav-hover"); }, function(){ $(this).removeClass("h-r-nav-hover"); } ); $(".find_button").on("click",function(){ if($(".find_text").val()!=""){ window.open("http://so.crc.com.cn/was5/web/search?channelid=219990&searchword="+$(".find_text").val(),"鍗庢鼎缃湴鍏ㄦ枃鎼滅储","",""); } }); }); $(function(){ /* 椤甸潰婊氬姩 */ if($(".banner_img").length>0){ $("#header").add(".banner_img").css("position","fixed"); $(".banner_img").insertAfter($("#header")); $("#body .w1000").wrap('
'); $(window).scroll(function(){ var st=$(window).scrollTop(); if(st>220){ $("#header").css("top",220-st); }else{ $("#header").css("top",0); } if(st>325){ $("banner_img.banner_img").css('top',-320); }else{ $(".banner_img").css('top',0); } }); } });