在服务页面上向上滑动滑块不工作/显示

Slide Up on Services Pages & Slider Not Working/Showing

本文关键字:工作 显示 服务      更新时间:2023-09-26

原本在CSS论坛上张贴的,但这是一个jQuery问题…

这是网站,如果你从主页开始,然后点击右边导航中的服务,它不起作用,显示服务的滑块根本不起作用,它应该向上滑动,然后可以点击关闭按钮来滑动…

http://redrhinorestoration.com/wp/

它唯一有效的时候是如果你通过在浏览器中输入URL直接进入Services页面,然后它将工作,你可以看到它是如何工作的…

http://redrhinorestoration.com/wp/services

同样,在我的LayerSlider的Process页面上也有同样的问题当你打开首页或者除Process之外的任何其他页面然后进入Process它根本不会显示滑块,但是如果你直接进入Process在URL中输入它你会看到滑块....

http://redrhinorestoration.com/wp/process

知道为什么会这样吗?希望这些都讲得通。对我来说,这就像jquery的功能被禁用了。

问候,迈克

这是伪代码。你需要使用$.ajaxComplete();函数。这将在您对页面

进行每次Ajax调用之后触发
$(document).ajaxComplete(function() {
  showBottom.onclick = function() {
                classie.toggle( this, 'active' );
                classie.toggle( menuBottom, 'cbp-spmenu-open' );
                disableOther( 'showBottom' );
            };
});

尝试编辑您的onTransitionFinished()函数来为您处理设置按钮:

function onTransitionFinished()
{
    // alert("transitioned");
    var showBot = $('#showBottom');
    showBot.click(function() {
                classie.toggle( this, 'active' );
                classie.toggle( menuBottom, 'cbp-spmenu-open' );
                disableOther( 'showBottom' );
    });
}