单击模拟选项卡以在jquery中创建选项卡的幻灯片
我在下面有这个很好的工作标签系统…但我希望它开始模仿点击它的人,有效地创建从llist到另一个的幻灯片…
//Homepage Tabs $('#lcontent .tab:first').show(); $('#llist li').click(function() { var thisTop = $(this).position().top; $('.pointer').animate( {'top': thisTop} ); $('#llist li').removeClass('current'); $(this).addClass('current'); var id = $("li.current a").attr('href'); $("#lcontent div").fadeOut(500).hide(); $(id).fadeIn(); return false; });
列表的HTML:
内容标签
sage solutions
Sage content
Unsure which solution is best for your business?
Use our step-by-step guide...
credit management solutions
Credit content third party additions
Third party content
setInterval((function(){ var count = 0; var ul = $('#llist li'); return function(){ ul.eq(++count % ul.length).click(); }; })(), 2000);