/*====================================页面配置====================================*/ $(function() { var swidth = document.documentelement.scrollwidth; var shieght = document.documentelement.scrollheight; var in_height = document.body.offsetheight; $("#banner").width(swidth); $("#banner").slide({ titcell: ".hd ul", maincell: ".bd ul", effect: "fold", autoplay: true, delaytime: 800, intertime: 6000, mouseoverstop: false, autopage:true, autopage:'
  • ' }); //touchslide({ slidecell:"#banner",maincell:".bd ul ",effect:"leftloop",autoplay:true,delaytime:800,intertime:6000}); $("#nav").slide({ titcell: ".title", targetcell: ".list", type: "menu", effect: "slidedown", delaytime: 200, triggertime: 210, returndefault: false, titonclassname: "on_on" }); $("#nav li:first").addclass("no_bg"); $("#nav .list").hover(function() { $(this).prev(".a").addclass("hover") }, function() { $(this).prev(".a").removeclass("hover") }) $("#nav li.title,.list_box").hover(function() { $(".list_box").css("height", "50px"); $("#nav li:nth-child(2) .list,#nav li:nth-child(3) .list,#nav li:nth-child(4) .list").addclass("text_left"); $("#nav .list").css("z-index", "999"); }, function() { $(".list_box").css("height", "0px"); }); //友情链接 $("#bnt_link").click(function(){ $(this).toggleclass("icon_un"); $("#content_link").slidetoggle(0); }); $("#s_case").slide({maincell:".bd ul",effect:"leftloop",croll:1,vis:4, autoplay: true}); $("#s_news").slide({ titcell: ".hd .a", maincell: ".bd", autopage: false, effect: "fold", scroll: 1, vis: 1 }); $(".ar_article p:last").addclass("no_padding"); $("#n_notice li:odd").addclass("odd"); // $("#n_zizhi").slide({maincell:".bd ul",effect:"leftloop",croll:1,vis:4}); //大事记 $("#n_dsj li:last").addclass("no_margin"); }); window.onscroll = function() { if ($(window).scrolltop() > 245) { $("#n_up_box").addclass("fix"); } else if ($(window).scrolltop() < 245) { $("#n_up_box").removeclass("fix"); } }; $(document).mouseup(function(e){ var _con = $('.top_link'); // 设置目标区域 if(!_con.is(e.target) && _con.has(e.target).length === 0){ // mark 1 $("#content_link").slideup(); } });