No, you cannot in any way replace the value of the src attribute.
Jonathan Lanowski said: And I've never heard that CSS is able to change the src attribute. The only way I can think that I can change the image through CSS is to src a transparent image and change the background image.
Remember the value of the IMG element. It should show the image as content, not a presentation. If you put a transparent .gif or something in the src attribute, you will also remove the content from the page.
The same applies to using different CSS-hover methods to change the image, you still delete the content until you have the actual image in the src attribute. In addition, you will not be able to change the image while the span element hangs until your document is marked as it is.
So this is a typical Javascript job.
source share