Image colorchange while mouseover on color swatches

Hi All,

I need a head start to do a project, where I have to dynamically get the color swatches for each products and when the user hovers the mouse over the swatches I need to show the product per the swatch color. Right now I’m acheiving the same using javascript. Is there any way instead of loading the each time the image from file directory when hover the mouse over the swatch…

thanks