/*====================================页面配置====================================*/ $(function() { var swidth = document.documentelement.scrollwidth; var shieght = document.documentelement.scrollheight; var in_height = document.body.offsetheight; $("#banner").width(swidth); $("#banner").slide({ titcell: ".hd li", maincell: ".bd ul", effect: "fold", autoplay: true, delaytime: 800, intertime: 6000, mouseoverstop: false }); //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: 600, triggertime: 0, returndefault: false, titonclassname: "on_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(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_slide_news_pic").slide({ maincell:".bd ul",effect:"fold",delaytime:800,titonclassname:"current"}); //公告栏 $("#slide_news_top").slide({maincell:".bd .box",effect:"totmarquee",autoplay:true,intertime:50,pnloop:false,trigger:"click",vis:4}); //新闻tab切换1 $("#slide_news1").slide({titcell:".hd a",maincell:".bd",effect:"fold",delaytime:800,titonclassname:"on"}); //新闻tab切换2 $("#slide_news2").slide({titcell:".hd a",maincell:".bd",effect:"fold",delaytime:800,titonclassname:"on"}); //新闻切换 $("#slide_news").slide({ maincell:".bd ul",effect:"fold",delaytime:800,titonclassname:"current"}); //工程案例 $("#s_case").slide({titcell:".hd a",maincell:".bd",effect:"fold",delaytime:800,titonclassname:"on"}); //企业娱乐 $("#s_links_hw").slide({maincell:".content ul",effect:"leftmarquee",autoplay: true,intertime:50,pnloop:false,trigger:"click",vis:5}); //logo友情链接 $("#s_links").slide({maincell:".bd ul",effect:"leftmarquee",autoplay: true,intertime:50,pnloop:false,trigger:"click",croll:1,vis:7}); //左侧推荐新闻 $("#hot_news").slide({titcell:".hd ul",maincell:".bd ul",effect:"leftloop",delaytime:800,titonclassname:"on"}); // $("#n_dsj .hd_box").slide({maincell:".bd ul",effect:"leftloop",delaytime:800,titonclassname:"on",croll:1,vis:3}); // $("#n_dsj").slide({titcell:".hd_box li",maincell:".bd_box",effect:"fold",delaytime:800,titonclassname:"on_on",prevcell:".j_prev",nextcell:".j_next"}); $("#n_news .up").slide({titcell:".hd ul",maincell:".bd ul",effect:"fold",delaytime:800,titonclassname:"on",autopage:true,autopage:'