Auto Sliding Tabs
It’s an add-on for my Sliding Tabs script. It adds an extra feature so the Sliding Tabs widget can change to the next or previous pane every few seconds. Good for annoying rotating ads and stuff. It will stop automatically moving through if the user uses some of the UI like next/previous buttons or the tab buttons. Make sure you load it _after_ sliding-tabs.js, or it won’t have anything to add the new functionality to!
It add’s two new options, here they are!
* `autoSlideDelay`: a number in seconds which the script waits before moving to the next pane. Defaults to `3` (seconds)
* `autoSlideDirection`: either ‘next’ or ‘previous’, sets the direction it moves automatically. Defaults to ‘next’
If you wanted it to wait 5 seconds instead of 3, you could use the `autoSlideDelay` option like this:
var widgetName = new AutoSlidingTabs(’button-container-id’, ‘pane-container-id’, {autoSlideDelay: 5});
So, go see the demo, then download the script or the compressed version. And be sure to give something!