JSFiddle - React, Tailwind, and code Playground
HTML
<center>
<label><input type="radio" name="slider" value="small" class="slide2" data-href="http://mtcdistrup.cluster003.ovh.net/cart/?add-to-cart=18461" />
<img src="http://img4.hostingpics.net/pics/32706861s3.jpg"></label>
<label><input type="radio" name="slider" value="small" class="slide2" data-href="http://mtcdistrup.cluster003.ovh.net/cart/?add-to-cart=19172" />
<img src="http://img4.hostingpics.net/pics/59846768m2.jpg"></label>
<label><input type="radio" name="slider" value="small" class="slide2" data-href="http://mtcdistrup.cluster003.ovh.net/cart/?add-to-cart=19173" />
<img src="http://img4.hostingpics.net/pics/23195075l2.jpg"></label>
<label><input type="radio" name="slider" value="small" class="slide2" data-href="http://mtcdistrup.cluster003.ovh.net/cart/?add-to-cart=19174" />
<img src="http://img4.hostingpics.net/pics/469522xl2.jpg"></label>
<div class="fusion-separator fusion-full-width-sep sep-none" style="margin-left: auto;margin-right: auto;margin-top:6px;margin-bottom:2px;"></div>
<div id="tuxie4" height: 124px; width: 202px;>
<a id="down_icon2" href="#">
<span id="edit-img">
<img src="http://img4.hostingpics.net/pics/744738transparant.png">
</span>
</a>
</div>
</center>
CSS
input[type=radio] + img:hover,input[type=radio]:checked + img {
-webkit-filter: invert(100%);
}
input[type=radio]{
visibility: hidden;
position: absolute;
}
input[type=radio] + img{
cursor:pointer;
border:2px solid transparent;
}
input[type=radio]:checked + img{
border:2px solid #888;
}
#tuxie4 {
width: 202px; height: 124px;
background: url('http://img4.hostingpics.net/pics/123546azoiuehfpoiuazhpeiofhaipozuehfoipauzehipfuhaziuef.jpg') no-repeat left top;
background-position: 0px 0px;
}
#tuxie4:hover { background-position: -202px 0px }
#tuxie4.selected {
width: 202px; height: 124px;
background: url('http://img4.hostingpics.net/pics/988916imagehover2.jpg') no-repeat left top;
background-position: 0px 0px;
}
#tuxie4.selected:hover { background-position: -202px 0px }
JavaScript
var sliders = document.getElementsByName('slider');
var linkWrapper = document.getElementById('down_icon2');
for (var i in sliders){
sliders[i].addEventListener('click', function(ev){
linkWrapper.setAttribute('href', ev.target.getAttribute('data-href'));
document.getElementById("tuxie4").classList.add("selected");
});
}