setinterval - Loop a jquery animate -


i have code, runs once , stops. want run every ten seconds, know setinterval loop code, reason not working?

<script>    $(document).ready(setinterval(function(){        $("#club_color1 a").animate({color: '#000000'}, 1000);        $("#club_color2 a").animate({color: '#000000'}, 1000);        $("#club_color1 a").animate({color: '#ffffff'}, 1000);        $("#club_color2 a").animate({color: '#ffffff'}, 1000);    }),10000); </script> 

i think last line needs be

},10000)); 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -