fullPage.js回调浏览器兼容性问题

时间:2013-10-24 09:25:07

标签: javascript jquery css fullpage.js

我在我正在使用的网站上使用jQuery的fullPage.js插件。在第一页上隐藏右侧导航,在其他页面上显示导航。它在chrome中正常工作,但在其他浏览器上却无法显示。

该网站的链接是:here

以下是回调事件发生的位置。用户滚动到该部分时的回调可以正常工作,但导航不会滑入。

var pepe = $.fn.fullpage({
        slidesColor: ['whitesmoke', 'whitesmoke', 'whitesmoke', 'whitesmoke', 'whitesmoke', 'whitesmoke', 'whitesmoke', 'whitesmoke', 'whitesmoke', 'whitesmoke'],
        anchors: ['home', 'about', 'about-more', 'scheme', 'scheme-more', 'history', 'history-more', 'location', 'popup', 'contact' ],
        menu: '#menu',
        afterLoad: function(anchorLink, index){
            if(index != 1){
                $("#nav-right").show("slide",{direction:"right"},200);
            }
            if(index == 1){
                $("#nav-right").hide("slide",{direction:"right"},200);
            }
        },
        scrollOverflow: true
    });

感谢您的帮助!

0 个答案:

没有答案
相关问题