I'm trying to make a css background flash between two colours. The best solution seemed to be using a recursive function shown on a similar question:
(function pulse(){
$('#my_div').delay(100).css("background-color","blue").delay(100).css("background-color","red").delay(100).fadeIn('slow',pulse);
})();
http://jsfiddle.net/bSWMC/223/
I can't seem to get the background switching colours. There may be a really obvious answer here, I'm new to jQuery!
Many thanks for your help, jeremy