单击拇指后关闭 jQuery Toggle
确实需要解决这个问题,我正在尝试解决这个问题,因此如果您单击较小的缩略图之一,图像收集切换将关闭,如果您单击切换我遇到了问题,我已经设法将其关闭,如果需要,请查看链接 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试添加
到 $('.thumb') 的点击处理程序。它调用拇指切换点击处理程序。
Try adding
to the click handler for $('.thumb'). It calls the thumb toggle click handler.
当使用 firebug 编辑页面时,这似乎有效。
This seemed to work when editing your page using firebug.