2015-05-13 36 views

回答

0

要初始化fullPage.js两次here ......

,你应该包括JavaScript的问题之前的CSS样式。

您应该只有一个初始化:

//FULL PAGE CODE 
$('#fullpage').fullpage({ 
    css3: true, 
    navigation: true, 
    navigationPosition: 'right', 
    easing: "easeOutQuad", 
    scrollOverflow: true, 
    onLeave: slideLeave, 
    paddingTop: '0px', 
    verticalCentered: false, 

    afterLoad: function(anchorLink, index){ 
     var loadedSection = $(this); 
     $("#ufoscroll").hide(0); 
     $("#ufopic").show(0); 

     if(index == 9){ 
     $("#makurtale").show(""); 
     } 

     if(index == 10) 
     $(".solbillede").show(""); 
     $("#ufoscroll").hide(0); 
     $("#ufopic").show(0); 

    }, 

    onLeave: function(index, nextIndex, direction){ 
     var leavingSection = $(this); 
     if(direction =='up'){ 
      $("#ufoscroll").show(0); 
      $("#ufopic").hide(0);    
     } 
    }, 
}); 
+0

它修好了我的所有问题,包括没有提到的一些。谢谢! – cnos