I am having trouble with a JavaScript function I wrote that will fade the background color of an element to white using the given number of steps. The problem is that it runs so fast that you never see the fading unless you put an alert in between each fade step. Does anyone know how I can put a delay between each fade step so that the fade is noticeable to the user?