Jquery Too Much Recursion Error
- by user367082
Hi There. I hope someone could help me.
I have this code:
<script>
$(document).ready(function() {
spectrum();
function spectrum(){
$('#bottom-menu ul li.colored a').animate( { color: '#E7294F' }, 16000);
spectrum2();
}
function spectrum2(){
$('#bottom-menu ul li.colored a').animate( { color: '#3D423C' }, 16000);
spectrum();
}
});
</script>
it's working but when I look at firebug it says that there's a Too Much Recursion error.
I hope someone can tell me why.
Thanks!