css
lichtpausen asked:

Imagine a website with buttons “A” and “B”, as well as another image, “X”.

During mouseover at “A”, “A”, should change into “A2”. At the same time, “X” should change into “XA”.

During mouseover at “B”, “B” should change into “B2”. At the same time, “X” should change into “XB”.

Ideally (though this is not necessary), a mouseover at “X” should change “X” into “X2”.

Can I use CSS for this kind of image swap? If not, how can I do it via Javascript?
Looks like I was too confusing. Here’s a simplification of my request:

Moving my mouse over button A changes the images at both A and X.

Moving my mouse over button B changes the images at both B and X.

X changes into a different image depending on whether I moved my mouse over A or B.