/*功能性执行代码*/ $(function(){ $('.wngansha ul').carouFredSel({ auto : { timeoutDuration:5000 }, direction : "left", // prev : "#y-left", // next : "#y-right", pagination: "#pager-wngansha", scroll : { items: 1, pauseOnHover: true//鼠标经过停止滚动!!神代码!!!。 } }); $(".search-911 a").click(function(){ $(this).hide(); $(".search-911-form").fadeIn(); }) $('.gongcheng-list ul').carouFredSel({ auto : { timeoutDuration:5000 }, direction : "left", // prev : "#y-left", // next : "#y-right", pagination: "#pager-gongcheng", scroll : { items: 1, pauseOnHover: true//鼠标经过停止滚动!!神代码!!!。 } }); $('.lingyu-list ul').carouFredSel({ auto : { timeoutDuration:3000 }, direction : "left", prev : "#ly-left", next : "#ly-right", // pagination: "#pager-gongcheng", scroll : { items: 1, pauseOnHover: true//鼠标经过停止滚动!!神代码!!!。 } }); $('#jiaru-list-2-2-2 ul').carouFredSel({ auto : { timeoutDuration:5000 }, direction : "left", // prev : "#y-left", // next : "#y-right", pagination: "#pager-jiaru-22", scroll : { items: 1, pauseOnHover: true//鼠标经过停止滚动!!神代码!!!。 } }); $("#close-33").click(function(){ $("#zhongbai-wp").hide(); }) $(".job-bai-more a").click(function(){ $("#zhongbai-wp").show(); }) $(document).on("click","#zhongbai-a a",function(){ $(this).hide(); $(this).next(".zhongbai-form").show(); }) $(".xinwen-an span").mouseenter(function(){ $(this).addClass('active').siblings('span').removeClass('active'); $(".xinwen-list").hide(); $(".xinwen-list").eq($(this).index()).show(); $(".more a").hide(); $(".more a").eq($(this).index()).show(); }) $("#sanlan").click(function(){ $(".nav-2").slideToggle(); }) $(".nav-2 li span").click(function(){ $(this).next('.downla-2').slideToggle(); }) $('.time-list ul').carouFredSel({ auto : false, direction : "left", circular :false, infinite:false, prev : "#t-left", next : "#t-right", scroll : { items: 1, pauseOnHover: true//鼠标经过停止滚动!!神代码!!!。 } }); $('.dashiji-list ul').carouFredSel({ // auto : false, auto : { timeoutDuration:5000 }, direction : "left", circular :false, infinite:false, prev : "#dashi-left", next : "#dashi-right", scroll : { items: 1, pauseOnHover: true//鼠标经过停止滚动!!神代码!!!。 } }); $('.tuandui-list ul').carouFredSel({ auto : { timeoutDuration:5000 }, direction : "left", prev : "#tui-left", next : "#tui-right", scroll : { items: 1, pauseOnHover: true//鼠标经过停止滚动!!神代码!!!。 } }); $(".nav ul.nav-ul>li").hover(function(){ $("#header-lan").stop().toggle(); }) $(".nav ul.nav-ul>li").eq(0).hover(function(){ $("#header-lan").hide(); }) $(".nav ul.nav-ul>li").eq(9).hover(function(){ $("#header-lan").hide(); }) //文字上下翻页 function textBtn(obj){ var box=obj.find('.text-con-box'); var con=obj.find('.text-con'); var prev=obj.find('.ss2'); var next=obj.find('.ss1'); var H=box.height(); var h=con.height(); prev.css({'opacity':'0.35','cursor':'default'}); $(window).resize(function(){ H=box.height(); h=con.height(); }) //if(h>H){ next.click(function(){ H=box.height(); h=con.height(); if(h>H){ var t=parseInt(con.css('top')); //console.log(H,h,t) if(t-H<=-h){ return false; }else{ con.stop(true,true).animate({'top':t-H}); opacity(t-H); } } }) prev.click(function(){ H=box.height(); h=con.height(); if(h>H){ var t=parseInt(con.css('top')); if(t+H>0){ if(t<0){ con.stop(true,true).animate({'top':'0'}); }else{ return false; } }else{ con.stop(true,true).animate({'top':t+H}); opacity(t+H); } } }) //} function opacity(t){ //console.log(t,H,h,t-2*H) if(t-H<=-h){ next.css({'opacity':'0.35','cursor':'default'}); }else{ next.css({'opacity':'1','cursor':'pointer'}); } if(t+H>0){ prev.css({'opacity':'0.35','cursor':'default'}); }else{ prev.css({'opacity':'1','cursor':'pointer'}); } } } textBtn($('.ld-con-wp')); textBtn($('.wenhua-wp')); })/*function结束括号,JS代码请放此上!!!*/ /*功能性执行代码*/