<img src="https://picsum.photos/id/237/200/300" alt="" id="foto">
document.getElementById("foto").addEventListener("mouseover", function () {
document.getElementById("foto").src = "https://picsum.photos/id/237/200/300";
});
document.getElementById("foto").addEventListener("mouseout", function () {
document.getElementById("foto").src = "https://picsum.photos/id/238/200/300";
});
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.