Tabbed Content / Posts /

Tabbed Content: automatically advance

20
Is it possible to set up tabbed content so that it moves through each tab/content after a predetermined time, say 5 seconds?
bob meetin  4 years ago   viewed: 6009    

3 Answers

-1
does tabs.open() still work for the latest version?

nick b   4 years ago
0
No. It is not supported anymore. That feature has been moved to Menucool jQuery Tabs.
Milo   4 years ago
-2
[admin] Please ignore the answer below as the tabs.open functionality has been moved to Menucool jQuery Tabs.
Try adding this to to the end of your page, just before the </body> closing tag (suppose you have 5 tabs for content DIVs with id="view1", "view2", ... "view5") :
<script> var idx = 1; function moveToNextTab(interval){ setTimeout(function(){idx++; if(idx>5) idx=1; tabs.open("view"+idx, true); moveToNextTab(interval);}, interval); } moveToNextTab(5000); </script>
milo
  4 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: