$(function() { $("#banner_tabs").flexslider({ slideshow: true,//设置是否自动滚动 slideshowSpeed: 4000, //展示时间间隔ms animationSpeed: 400, //滚动时间ms touch: true //是否支持触屏滑动 }); }); $(function() { $("#G-scrolls").jCarouselLite({ btnNext: "#btnnext", btnPrev: "#btnlast", speed: 3000, visible:1, scroll:1, auto:true }); $("#G-scroll1").jCarouselLite({ btnNext: "#btnnext1", btnPrev: "#btnlast1", speed: 3000, visible:1, scroll:1, auto:true }); $("#G-scroll2").jCarouselLite({ btnNext: "#btnnext2", btnPrev: "#btnlast2", speed: 3000, visible:1, scroll:1, auto:true }); $("#G-scroll3").jCarouselLite({ btnNext: "#btnnext3", btnPrev: "#btnlast3", speed: 3000, visible:1, scroll:1, auto:true }); $("#G-scroll4").jCarouselLite({ btnNext: "#btnnext4", btnPrev: "#btnlast4", speed: 3000, visible:1, scroll:1, auto:true }); }); jQuery(function($){ $("#gblink").click(function(){ $.cookie('jQuery_client_language',null,{path:"/"}); location.href=location.href; $("#gblink").hide(); $("#big5link").show(); }); $("#big5link").click(function(){ $.cookie('jQuery_client_language',"big5",{path:"/"}); jQuery("body").gb2big5(); location.href=location.href; $("#big5link").hide(); $("#gblink").show(); }); var $language = $.cookie('jQuery_client_language'); if($language && $language=="big5"){ $("body").gb2big5(); document.title =jtf(document.title); $("#big5link").hide(); $("#gblink").show(); } var h=$(".cfgc-header").height(); var b=$(".cfgc-banner").height(); $(window).scroll(function(){ var tops=$(document).scrollTop(); console.log(h+b); if(parseInt(h+b)