//dom option $(document).ready(function() { //focus $(".focus").slides({ container: 'pic', paginationclass: 'navi', generatenextprev: true, next: "next666", prev: "prev666", // preload: true, // preloadimage: 'images/loading.gif', play: 5000, pause: 2500 }); $(".focus").hover(function() { $(".focus .prev, .focus .next, .focus .prev666, .focus .next666").fadein(); }, function() { $(".focus .prev, .focus .next, .focus .prev666, .focus .next666").fadeout(); }); }); //dom option $(document).ready(function() { $("#hbyw").parent().slide({ titcell: $("#hbyw").parent().find('.dots'), maincell: $("#hbyw").parent().find('.list'), autopage: true, effect: "left", //autoplay: true, vis: 3, scroll: 3 }); //焦点图头部切换屏蔽 $(".banner").slide({ maincell: ".pic ul", titcell: ".navi li", effect: "left", autoplay: true, intertime: 8000, mouseoverstop: false, trigger: "click", endfun: function(i) { $(".pic li").eq(i).addclass("current").siblings().removeclass("current"); } }); //动画进入 // $('.animate').scrolla({ // //mobile: false, // once: false // }); //滚动事件 function pagescroll() { var st = $(document).scrolltop(), gt = 60; //p1&backtop if(st > gt) { $('.backtop').fadein(300); // $('.header').addclass('fixed'); // // $('.slogan').fadeout(300); // // $('.intro, .leader').show().removeclass('fadeoutdown').addclass('animated fadeinup'); } else { $('.backtop').fadeout(300); // $('.header').removeclass('fixed'); // // $('.slogan').fadein(300); // // $('.intro, .leader').removeclass('fadeinup').addclass('fadeoutdown'); } //滚动提示隐藏 if(st > 50) { $('.scrolling').fadeout(300); } else { $('.scrolling').fadein(300); } } $(window).bind("load scroll resize", pagescroll); $(".backtop").click(function() { $("html, body").animate({ scrolltop: 0 }, 500); }); //导航动画 $('.nav li').mouseover(function(event) { if($('.header').hasclass('fixed')) { $(this).siblings('li').find('a').css('color', '#333'); } $('.nav .bg').css({ left: $(this).offset().left - $('.nav').offset().left, width: $(this).width() }); }).mouseleave(function(event) { $('.nav li a').removeattr('style'); $('.nav .bg').css({ left: $('.nav .current').offset().left - $('.nav').offset().left, width: $('.nav .current').width() }); }); //导航当前响应 //function navcurrent() { // $('.nav .bg').css({ // left: $('.nav li.current').offset().left - $('.nav').offset().left, // width: $('.nav li.current').width() // }); // } // $("#nav").onepagenav({ //changehash: true, //scrolloffset: 100, // scrollthreshold: 0.2, // scrollchange: navcurrent // }); // $(window).bind("load resize", navcurrent); //当前高亮 $(".service li, .company li").hover(function() { var that = $(this); function navtab() { that.addclass("current").siblings().removeclass("current"); } timer = settimeout(navtab, 300); }, function() { cleartimeout(timer); }); $('.company').mouseleave(function(event) { $('.company li').removeclass('current'); }); //新闻分类切换 $(".p3 .w1200").slide({ titcell: "#tab1 li", maincell: "#cont", effect: "fade", intertime: 2000, }); //新闻条目轮播 $('.news .pane').each(function() { if($(this).find('.list li').length > 3) { $(this).slide({ titcell: $(this).find('.dots'), maincell: $(this).find('.list'), autopage: true, effect: "left", autoplay: true, intertime: 5000, vis: 3, scroll: 3 }); } }); //专题 $('.zt-wraper').slide({ titcell: "#page1", maincell: "#zt", autopage: true, effect: "leftloop", autoplay: true, scroll: 1, vis: 3, // pnloop: false, intertime: 3500, }); //内页专题 $('.zt-wraper.pro').slide({ maincell: "#zt2", autopage: true, effect: "leftloop", autoplay: true, scroll: 1, vis: 1, // pnloop: false, intertime: 3500, }); //项目展示 $('.cpzs-wraper').slide({ titcell: "#page1", maincell: "#cpzs", autopage: true, effect: "leftloop", autoplay: true, scroll: 1, vis: 1, // pnloop: false, intertime: 3500, }); //轮播 $('.public').slide({ titcell: "#page2", maincell: "#cont2", autopage: true, nextcell: "#next2", prevcell: "#prev2", effect: "left", //autoplay: true, scroll: 1, vis: 1, pnloop: false }); //主导航带子菜单 $("#nav li").mouseover(function() { $(this).addclass("current").find(".sub").slidedown(300); //当前高亮、子菜单出现 }).mouseleave(function() { $(this).removeclass("current").find(".sub").slideup(300); //取消当前高、子菜单隐藏 }); // 展开table详情 // $("#table_more").click(function () { // $(".score_center td em").slidetoggle(); // }); });