Basically trying to do the following:
I have three colors: Blue, Green and Red
I have a set of images that should load based on the color link selected. All the images are the exact same in format, except for the color:
Blue: img1.blue.jpg, img2.blue.jpg. img3.blue.jpg Green: img1.green.jpg, img2.green.jpg, img3.green.jpg
I know to split the src by ".", but how can I change the color portion for all the images that have a particular class?