// javascript document $(document).ready(function(e) { var isie = /msie/.test(navigator.useragent.tolowercase()); if(isie && $.support.opacity!==true){ //alert(1); $('body').addclass('ltie10'); } $('#fullpage').fullpage({ 'verticalcentered': false, //'css3': true, //resize:false, //autoscrolling:false, // scrolloverflow:true, // scrollbar:true, 'sectionscolor': ['#ffffff', '#ffffff', '#efefef', '#ffffff', '#f7ab00', '#ffffff', '#ededed'], 'anchors': ['page1', 'page2', 'page3', 'page4','page5', 'page6', 'page7'], 'navigation': true, 'navigationposition': 'right', 'navigationtooltips': ['首页', '关于我们', '新闻中心', '项目', '人力资源', '联系', '联系'], //'autoscrolling':false, afterrender: function () { // $(".page1").height(490) //$(".page2").height(525) //$(".page3").height(496) //$(".page4").height(512) //$(".page7").height(512) }, afterresize: function () { //$(".page1").height(490) //$(".page2").height(525) //$(".page3").height(496) //$(".page4").height(512) //$(".page7").height(512) }, afterload: function(anchorlink, index){ //if(index == 1){pageonein();} //if(index == 2){fnpage2();} //if(index == 3){fnpage3();} //if(index == 4){fnpage4();} //if(index == 4){pagefourin();} }, onleave: function(index,nextindex,direction){ //if(index == '1' && direction=='down'){pageoneout();} //if(index == '2'){fnpage2out();} //if(index == '3'){fnpage3out();} //if(index == '4'){fnpage4out();} //if(index == '4'){pagefourout();} } }) //$.fn.fullpage.setautoscrolling(false); //$.fn.fullpage.setallowscrolling(false); $.fn.fullpage.destroy('all'); }); $(document).ready(function(e) { $(".header .box .share ul li").hover(function(){ $(this).find(".img1").animate({top:"-20px"}); $(this).find(".img2").animate({top:"0px"}); },function(){ $(this).find(".img1").animate({top:"0px"}); $(this).find(".img2").animate({top:"20px"}); }) $(".header .menu ul li").hover(function(){ $(this).find(".img1").stop().animate({left:"-35px"}) $(this).find(".img2").stop().animate({left:"0px"}) $(this).find("i").stop().animate({top:"23px"}) $(this).find("span").stop().animate({top:"0px"}) },function(){ $(this).find(".img1").stop().animate({left:"0px"}) $(this).find(".img2").stop().animate({left:"-35px"}) $(this).find("i").stop().animate({top:"0px"}) $(this).find("span").stop().animate({top:"16px"}) }) w=$(".page1").width(); h=$(".page1").height(); /* $(".page1 .slidebox .list").height(h-118); $(".page1 .slidebox .list ul li").height(h-118); $(".page1 .slidebox .list ul li img").height(h-118); $(".page1 .showbox").height(h-118); $(".page2 .box").height(h); $(".page3 .box").height(h); $(".page4 .box").height(h); $(".page5 .box").height(h); $(".page6 .box").height(h); $(".page7 .box").height(h); $(".page8 .box").height(h); */ /* $(".page3 .arrbg ul li").hover(function(){ index=$(this).index(); $(".page3 .wordlist ul li").eq(index).show(); },function(){ index=$(this).index(); $(".page3 .wordlist ul li").eq(index).hide(); }) */ $(".page6 .caseslist ul li").hover(function(){ $(this).find("span").show(); },function(){ $(this).find("span").hide(); }) $(window).bind("scroll", function(){ $('.section').each(function(){ var fold = $(window).height() + $(window).scrolltop(); if(fold >= $(this).offset().top+100) { $(this).addclass("active"); //var t=this; //$.get('bipi.php',function(html){$(html).insertbefore('#show')}); } else { $(this).removeclass("active"); } }); }); });