$(function () { var swidth = document.documentelement.scrollwidth; var shieght = document.documentelement.scrollheight; var in_height = document.body.offsetheight; $("#banner,#banner .bd a").width(swidth); window.onresize=function(){ var swidth = document.documentelement.scrollwidth; $("#banner,#banner .bd a").width(swidth); }; $("#banner ").slide({ titcell: ".hd li", maincell: ".bd ul", effect: "fold", autoplay: true, delaytime: 800, intertime: 6000, mouseoverstop: false }); $("#nav").slide({ titcell: ".title", targetcell: ".list", type: "menu", effect: "slidedown", delaytime: 200, triggertime: 110, returndefault: false, titonclassname: "li_on" }); $("#nav .list").hover(function () { $(this).prev(".a").addclass("hover"); }, function () { $(this).prev(".a").removeclass("hover"); }); $("#nav li:last").css("background", "none"); $("#nav li.title,.list_box").hover(function () { $(".list_box").css("height", "50px"); $(" #nav li:nth-child(7) .list,#nav li:nth-child(8) .list").addclass("text_left"); $("#nav .list").css("z-index", "999"); }, function () { $(".list_box").css("height", "0px"); }); //鎼滅储 $("#bnt_search").click(function () { $("#j_seach_box").fadein(); $("#j_seach_box .bg_box").fadein(); }); $("#j_seach_box .bg_box").click(function () { $("#j_seach_box").fadeout(200); $("#j_seach_box .bg_box").fadeout(200); }); //缃戠珯鍦板浘 $("#bnt_site_map").click(function () { $("#site_map_box").fadein(100); $("#site_map_box .bg_box").fadein(100); $("#site_map_box .box").animate({ right: "0" }); $('.j_div_scoll').perfectscrollbar(); }); $("#bnt_close_nav,#bnt_close").click(function () { $("#site_map_box").fadeout(); $("#site_map_box .bg_box").fadeout(); $("#site_map_box .box").animate({ right: "-360px" }); }); $("#slide_yewu").slide({ titcell: ".hd a", maincell: ".bd ul", effect: "fold" }); $("#bnt_ewm").click(function () { $("#fix_ewm_box").fadein(); $("#fix_ewm_box .ewm img").css("margin-top","-140px"); }); $("#gotop").click(function () { $("html,body").animate({ scrolltop: 0 }, 700); }); //棣栭〉 $(".s_fast_link").slide({ maincell: ".bd ul", autoplay: true, effect: "toploop", vis: 1, scroll: 1, trigger: "click" }); //棣栭〉鍥剧墖鏂伴椈鎺ㄨ崘 $("#s_slide_news").slide({ titcell: ".hd ul", maincell: ".bd ul", effect: "leftloop", delaytime: 800, titonclassname: "current", autopage: true, autopage: '
  • ' }); //棣栭〉tab鍒囧浘鏂伴椈 $("#s_tab_news").slide({ titcell: ".hd a", maincell: ".bd", effect: "fold", delaytime: 300, intertime: 6000, }); //鍐呴〉鍙充晶鍒囨崲 $("#left_slide").slide({ maincell: ".bd ul", effect: "leftloop" }); //闊抽鎺т欢 $("#n_about .speak_box").click(function () { var bg_music = $(this).children("audio"); if ($(bg_music).hasclass("auto_play")) { bg_music.trigger('pause'); $("#n_about .speak_box").addclass("m_stop"); $(bg_music).removeclass("auto_play"); } else { $(bg_music).trigger('play'); $("#n_about .speak_box").removeclass("m_stop"); $(bg_music).addclass("auto_play"); } }); //闊抽鎺т欢end //鍙戝睍鍘嗙▼ $("#n_dsj").slide({ maincell: ".bd ul", effect: "leftloop", delaytime: 800, trigger: "click", vis: 3 }); //浜岀淮鐮� $("#bnt_ewm1").click(function() { $("#fix_ewm_box1").fadein(); $("#fix_ewm_box1 .ewm img").css("margin-top","-100px"); }); $("#bnt_ewm2").click(function() { $("#fix_ewm_box2").fadein(); $("#fix_ewm_box2 .ewm img").css("margin-top","-100px"); }); //涓嬪睘鍗曚綅 $("#n_underling").slide({ maincell: ".bd ul", effect: "leftloop", delaytime: 800, vis: 3 }); //浜т笟鍙戝睍 $("#slide_cy").slide({ maincell: ".bd .box", effect: "leftloop", delaytime: 800, vis: 3 }); //閲嶇偣椤圭洰 $(".cy_project01").slide({ maincell: ".bd ", effect: "fold", delaytime: 800 }); //楦熺灠鍥� $("#bnt_nk1").click(function () { $("#fix_nk_box1").fadein(); }); $("#bnt_nk2").click(function () { $("#fix_nk_box2").fadein(); }); $(".nkt_close").click(function () { $("#fix_nk_box1,#fix_nk_box2").fadeout(); $("#page_show_box .bg_box").fadeout(0); $("#page_show_box").fadeout(300); }); //浜т笟璇︽儏 $("#xg_project").slide({ maincell: ".bd ul", effect: "leftloop", delaytime: 800, vis: 4 }); $("#slide_business_photo").slide({ maincell: ".bd ul", effect: "leftloop", delaytime: 800 }); //鎺ㄨ崘鏂伴椈 $("#n_news .up").slide({ titcell: ".hd ul", maincell: ".bd ul", effect: "fold", delaytime: 800, titonclassname: "on", autopage: true, autopage: '
  • ' }); //瑙嗛涓績 $("#n_video").slide({ titcell: ".hd ul", maincell: ".bd .box", effect: "fold", delaytime: 800, titonclassname: "on", autopage: true, autopage: '
  • ' }); $("#n_party .un_box li").hover(function(){ $(this).prev().css("border-bottom","1px solid #fff"); $(this).css("border-bottom","1px solid #fff"); },function(){ $(this).prev().css("border-bottom","1px solid #eaebef"); $(this).css("border-bottom","1px solid #eaebef"); }); //鎷涜仒宀椾綅 $("#hr_slide_gw").slide({ maincell: ".bd ul", effect: "topmarquee", autoplay: true, intertime: 120, pnloop: false, trigger: "click", vis: 7 }); //鎷涜仒鍏憡 $("#hr_slide").slide({ maincell: ".bd ul", effect: "leftloop", vis: 2 }); //鑱旂郴鎴戜滑 $("#slide_contact").slide({ maincell: ".bd .box", effect: "fold", delaytime: 800 }); function an_map_mark() { $(".an_map_mark").animate({ bottom: "70px" }, 500); $(".an_map_mark").animate({ bottom: "50px" }, 500); $(".an_map_mark").animate({ bottom: "70px" }, 500); $(".an_map_mark").animate({ bottom: "50px" }, 500); settimeout(an_map_mark, 10); } an_map_mark(); $(".ar_article p:last").addclass("no_padding"); $("#n_team .text_box p:last").addclass("no_padding"); $("#list_slide dt").click(function () { if ($(this).hasclass('on')) { $(this).next().slideup(); $(this).removeclass("on"); } else { $("#list_slide dt").removeclass("on"); $("#list_slide dd").slideup(); $(this).addclass("on"); $(this).next().slidedown(); } }); //涓撻 $("#banner_zt ").slide({ titcell: ".hd li", maincell: ".bd ul", effect: "fold", autoplay: true, delaytime: 800, intertime: 3000, mouseoverstop: false }); $("#gotop").click(function () { $("html,body").animate({ scrolltop: 0 }, 600); }); //鐩稿叧閾炬帴 $("#bnt_link1").click(function () { $(this).toggleclass("icon_un"); $("#content_link1").slidedown(0); }); $("#bnt_link2").click(function () { $(this).toggleclass("icon_un"); $("#content_link2").slidedown(0); }); $(".ar_article p:last").addclass("no_padding"); $("#font_lg").click(function () { $(".font_box a").removeclass("on"); $(this).addclass("on"); $(".n_article .ar_article").removeclass("font_size_md"); $(".n_article .ar_article").removeclass("font_size_sm"); $(".n_article .ar_article").addclass("font_size_lg"); }); $("#font_md").click(function () { $(".font_box a").removeclass("on"); $(this).addclass("on"); $(".n_article .ar_article").removeclass("font_size_lg"); $(".n_article .ar_article").removeclass("font_size_sm"); $(".n_article .ar_article").addclass("font_size_md"); }); $("#font_sm").click(function () { $(".font_box a").removeclass("on"); $(this).addclass("on"); $(".n_article .ar_article").removeclass("font_size_md"); $(".n_article .ar_article").removeclass("font_size_sm"); $(".n_article .ar_article").addclass("font_size_sm"); }); $("#bnt_close_pop").click(function(){$("#j_pop").fadeout();}); $("#bnt_close_pop1").click(function(){$("#j_pop1").fadeout();}); $("#bnt_close_pop2").click(function(){$("#j_pop2").fadeout();}); $("#bnt_close_pop3").click(function(){$("#j_pop3").fadeout();}); $("#bnt_close_pop4").click(function(){$("#j_pop4").fadeout();}); $("#bnt_close_pop5").click(function(){$("#j_pop5").fadeout();}); }); window.onscroll = function () { if ($(window).scrolltop() > 600) { $("#gotop").slidedown();} else if ($(window).scrolltop() < 600) { $("#gotop").slideup(); } }; $(document).mouseup(function (e) { var _con = $('#bnt_site_map,#nav_right,#j_seach_box,.bnt_link,#bnt_nk1,#bnt_nk2,#j_seach_box form,#bnt_search'); // 璁剧疆鐩爣鍖哄煙 if (!_con.is(e.target) && _con.has(e.target).length === 0) { // mark 1 $("#nav_right").animate({ right: "-180px" }); $("#fix_ewm_box").fadeout(); $("#fix_ewm_box .ewm img").css("margin-top","-160px"); $("#fix_ewm_box1").fadeout(); $("#fix_ewm_box1 .ewm img").css("margin-top","-120px"); $("#fix_ewm_box2").fadeout(); $("#fix_ewm_box2 .ewm img").css("margin-top","-120px"); $("#content_link1,#content_link2").slideup(); $("#site_map_box").fadeout(); $("#site_map_box .bg_box").fadeout(); $("#site_map_box .box").animate({ right: "-360px" }); } });