单击拇指后关闭 jQuery Toggle

发布于 2024-11-27 08:28:47 字数 703 浏览 5 评论 0原文

确实需要解决这个问题,我正在尝试解决这个问题,因此如果您单击较小的缩略图之一,图像收集切换将关闭,如果您单击切换我遇到了问题,我已经设法将其关闭,如果需要,请查看链接 http://www.media21a.co.uk/development/fullthrottle/< /a>

谢谢你的任何 帮助 : )

$(document).ready(function() {

$(".dropgallery a, #fp_thumbtoggle").removeAttr("title");

$('#fp_thumbtoggle').click(function() {
    $('#fp_thumbtoggle').toggleClass("active");

    if ($('#fp_thumbtoggle').hasClass('active')){
        $('#fp_thumbtoggle').animate({top:'65px'});
    }else{
        $('#fp_thumbtoggle').animate({top:'185px'});
    }
    $('.dropgallery').slideToggle('500');
    return false;
});

});

Really need to get this fixed, I'm trying to make it so if you click on one of the smaller thumbnails the image collection toggle will close, I've managed to make it close if you click the toggle im having trouble with this, please see link if needed http://www.media21a.co.uk/development/fullthrottle/

Thank you for any help : )

$(document).ready(function() {

$(".dropgallery a, #fp_thumbtoggle").removeAttr("title");

$('#fp_thumbtoggle').click(function() {
    $('#fp_thumbtoggle').toggleClass("active");

    if ($('#fp_thumbtoggle').hasClass('active')){
        $('#fp_thumbtoggle').animate({top:'65px'});
    }else{
        $('#fp_thumbtoggle').animate({top:'185px'});
    }
    $('.dropgallery').slideToggle('500');
    return false;
});

});

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

可是我不能没有你 2024-12-04 08:28:47

尝试添加

$("#fp_thumbtoggle").click();

到 $('.thumb') 的点击处理程序。它调用拇指切换点击处理程序。

Try adding

$("#fp_thumbtoggle").click();

to the click handler for $('.thumb'). It calls the thumb toggle click handler.

柠檬色的秋千 2024-12-04 08:28:47

当使用 firebug 编辑页面时,这似乎有效。

  $(document).ready(function() {

    $(".dropgallery a, #fp_thumbtoggle").removeAttr("title");

//Notice change below
    $('#fp_thumbtoggle, .dropgallery img').click(function() {
        $('#fp_thumbtoggle').toggleClass("active");

        if ($('#fp_thumbtoggle').hasClass('active')){
            $('#fp_thumbtoggle').animate({top:'65px'});
        }else{
            $('#fp_thumbtoggle').animate({top:'185px'});
        }
        $('.dropgallery').slideToggle('500');
        return false;
    });

    });

This seemed to work when editing your page using firebug.

  $(document).ready(function() {

    $(".dropgallery a, #fp_thumbtoggle").removeAttr("title");

//Notice change below
    $('#fp_thumbtoggle, .dropgallery img').click(function() {
        $('#fp_thumbtoggle').toggleClass("active");

        if ($('#fp_thumbtoggle').hasClass('active')){
            $('#fp_thumbtoggle').animate({top:'65px'});
        }else{
            $('#fp_thumbtoggle').animate({top:'185px'});
        }
        $('.dropgallery').slideToggle('500');
        return false;
    });

    });
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文