I've been using jquery to do some image swapping and fading.
I have a div, with and id of cup-builder-error
I use jquery to load images into divs, then on error fade in and out the error div
$("#imgShell").attr("src","products/components/" + idArray[2] + ".png").error(
function(){
$("#cup-builder-error").fadeIn('fast');
$("#cup-builder-error").fadeOut('slow');
});
that code is surrounded by $("a").click(
function(event){
What happens is the fade in / out routine loops the number of time that the error happens.
What did I do wrong?
Thanks for the help!