This page explains very well how to change styles (both inline and external) on the fly using Javascript. Basically, once the javascript to populate the field's loops are complete, add the javascript code from the link, and make it change the background from an image to a plain color (white, black, etc). Hope that made sense