JSFiddle - React, Tailwind, and code Playground
by justincook
HTML
<img onmouseover="changeImage()" onmouseout="changeImage()" id="brewmp" alt="Brew" src="http://png-5.findicons.com/files/icons/75/i_like_buttons_3a/512/perspective_button_stop.png" width="20%">
JavaScript
var mp_os = '';
function changeImage(){
if (mp_os == "Brew MP") {
mp_os = "x";
document.getElementById("brewmp").src = "http://png-5.findicons.com/files/icons/75/i_like_buttons_3a/512/perspective_button_stop.png";
} else {
mp_os = "Brew MP";
document.getElementById("brewmp").src = "http://icons.iconarchive.com/icons/mazenl77/I-like-buttons-3a/512/Perspective-Button-Go-icon.png";
}
}