gpt4 book ai didi

jQuery 自动滚动/幻灯片

转载 作者:行者123 更新时间:2023-12-01 01:29:57 27 4
gpt4 key购买 nike

我可以修改此现有代码以自动滚动列表项以显示内容吗?

抱歉,:ul li a {} 链接。

也许使用“间隔”方法?

$(document).ready(function(){
$('ul.tabNav a').click(function() {
var curChildIndex = $(this).parent().prevAll().length + 1;
$(this).parent().parent().children('.current').removeClass('current');
$(this).parent().addClass('current');
$(this).parent().parent().prev('.tabContainer').children('.current').fadeOut('fast',function() {
$(this).parent().children('div:nth-child('+curChildIndex+')').fadeIn('fast',function() {
$(this).addClass('current');
});
$(this).removeClass('current');
});
return false;
});
});

最佳答案

有数百万个插件可以做到这一点。让我们不要重新发明轮子,尝试 these 之一或these .

编辑:还有特殊的计时器插件,看看this一个。

关于jQuery 自动滚动/幻灯片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2813952/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com