I am sure there is some jQuery wiz out there that can do that in 5-6 lines… my code look more like spaghetti now, so that why i ask here
I have about 20 sideshow on a page with <prevandnext> buttons
i like on any 1 sec to execute a click on any next sideshow on random
Do it will be lees distraction, that having 20 sideshow auto advance all at once…
How do you do that with jQuery
on every 1 second, select any class=next (button) and click()
—
just for the record : that dont work !
<script type="text/JavaScript">
jQuery(document).ready(function($) {
setInterval( $('.next').click(), 1000 );
});
</script>
Pass a function to
setInterval.If you want to randomly pick just one of the
'.next'to click: