How would I do this?
<style>
.playButtons {
white-space: nowrap;
font-size: 0;
}
.playButton {
position: relative;
display: inline-block;
cursor: pointer;
width: 83px;
height: 44px;
background-color: black;
border-top: 3px solid #0059dd;
border-bottom: 3px solid #0059dd;
}
.play,
.pause,
.speaker {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
}
.pause,
.speaker {
display: none;
}
.playButton.svoefm {
border-left: 3px solid #0059dd;
fill: #aaff00;
}
.playButton.soundpark {
width: 88px;
border-left: 3px solid #0059dd;
border-right: 3px solid #0059dd;
fill: #ffaa00;
}
.playButton.cavoparadisoclub {
border-right: 3px solid #0059dd;
fill: #ff00aa;
}
</style>
<div class="playButtons">
<div class="playButton svoefm" onclick="playButton(event)" onmouseover="showPause(event)" onmouseout="showSpeaker(event)">
<svg class="play" width="12" height="14" viewbox="0 0 85 100">
<path d="M81 44.6c5 3 5 7.8 0 10.8L9 98.7c-5 3-9 .7-9-5V6.3c0-5.7 4-8 9-5l72 43.3z"></path>
</svg>
<svg class="pause" width="10" height="14" viewbox="0 0 60 100">
<path d="M0 8c0-5 3-8 8-8s9 3 9 8v84c0 5-4 8-9 8s-8-3-8-8V8zm43 0c0-5 3-8 8-8s8 3 8 8v84c0 5-3 8-8 8s-8-3-8-8V8z"></path>
</svg>
<svg class="speaker" width="16" height="14" viewBox="0 0 16 14">
<path d="M12.945.38l-.652.762c1.577 1.462 2.57 3.544 2.57 5.858 0 2.314-.994 4.396-2.57 5.858l.65.763c1.79-1.644 2.92-3.997 2.92-6.62S14.735 2.024 12.945.38zm-2.272 2.66l-.65.762c.826.815 1.34 1.947 1.34 3.198 0 1.25-.515 2.382-1.342 3.2l.652.762c1.04-1 1.69-2.404 1.69-3.96 0-1.558-.65-2.963-1.69-3.963zM0 4v6h2.804L8 13V1L2.804 4H0zm7-1.268v8.536L3.072 9H1V5h2.072L7 2.732z"
fill-rule="evenodd"></path>
</svg>
<audio preload="none">
<source src="http://getradio.me/svoefm" type="audio/mpeg">
</audio>
</div>
<div class="playButton soundpark" onclick="playButton(event)" onmouseover="showPause(event)" onmouseout="showSpeaker(event)">
<svg class="play" width="12" height="14" viewbox="0 0 85 100">
<path d="M81 44.6c5 3 5 7.8 0 10.8L9 98.7c-5 3-9 .7-9-5V6.3c0-5.7 4-8 9-5l72 43.3z"></path>
</svg>
<svg class="pause" width="10" height="14" viewbox="0 0 60 100">
<path d="M0 8c0-5 3-8 8-8s9 3 9 8v84c0 5-4 8-9 8s-8-3-8-8V8zm43 0c0-5 3-8 8-8s8 3 8 8v84c0 5-3 8-8 8s-8-3-8-8V8z"></path>
</svg>
<svg class="speaker" width="16" height="14" viewBox="0 0 16 14">
<path d="M12.945.38l-.652.762c1.577 1.462 2.57 3.544 2.57 5.858 0 2.314-.994 4.396-2.57 5.858l.65.763c1.79-1.644 2.92-3.997 2.92-6.62S14.735 2.024 12.945.38zm-2.272 2.66l-.65.762c.826.815 1.34 1.947 1.34 3.198 0 1.25-.515 2.382-1.342 3.2l.652.762c1.04-1 1.69-2.404 1.69-3.96 0-1.558-.65-2.963-1.69-3.963zM0 4v6h2.804L8 13V1L2.804 4H0zm7-1.268v8.536L3.072 9H1V5h2.072L7 2.732z"
fill-rule="evenodd"></path>
</svg>
<audio preload="none">
<source src="http://getradio.me/spdeep" type="audio/mpeg">
</audio>
</div>
<div class="playButton cavoparadisoclub" onclick="playButton(event)" onmouseover="showPause(event)" onmouseout="showSpeaker(event)">
<svg class="play" width="12" height="14" viewbox="0 0 85 100">
<path d="M81 44.6c5 3 5 7.8 0 10.8L9 98.7c-5 3-9 .7-9-5V6.3c0-5.7 4-8 9-5l72 43.3z"></path>
</svg>
<svg class="pause" width="10" height="14" viewbox="0 0 60 100">
<path d="M0 8c0-5 3-8 8-8s9 3 9 8v84c0 5-4 8-9 8s-8-3-8-8V8zm43 0c0-5 3-8 8-8s8 3 8 8v84c0 5-3 8-8 8s-8-3-8-8V8z"></path>
</svg>
<svg class="speaker" width="16" height="14" viewBox="0 0 16 14">
<path d="M12.945.38l-.652.762c1.577 1.462 2.57 3.544 2.57 5.858 0 2.314-.994 4.396-2.57 5.858l.65.763c1.79-1.644 2.92-3.997 2.92-6.62S14.735 2.024 12.945.38zm-2.272 2.66l-.65.762c.826.815 1.34 1.947 1.34 3.198 0 1.25-.515 2.382-1.342 3.2l.652.762c1.04-1 1.69-2.404 1.69-3.96 0-1.558-.65-2.963-1.69-3.963zM0 4v6h2.804L8 13V1L2.804 4H0zm7-1.268v8.536L3.072 9H1V5h2.072L7 2.732z"
fill-rule="evenodd"></path>
</svg>
<audio preload="none">
<source src="http://s5.onweb.gr:8488/;">
</audio>
</div>
</div>
<script>
function getButton(el) {
while (el.nodeName !== "HTML" && el.nodeName !== "DIV") {
el = el.parentNode;
}
return el;
}
function playButton(event) {
var button = getButton(event.target);
var player = button.querySelector("audio");
var play = button.querySelector(".play");
var pause = button.querySelector(".pause");
var speaker = button.querySelector(".speaker");
button.classList.add("clicked");
player.volume = 1.0;
play.style.display = "none";
speaker.style.display = "none";
if (player.paused) {
play.style.display = "none";
pause.style.display = "inline-block";
player.play();
} else {
play.style.display = "inline-block";
pause.style.display = "none";
player.pause();
}
}
function showPause(event) {
var button = getButton(event.target);
var player = button.querySelector("audio");
player.isPlaying = function() {
return player.paused === false;
}
if (player.isPlaying()) {
button.querySelector(".speaker").style.display = "none";
button.querySelector(".pause").style.display = "inline-block";
}
}
function showSpeaker(event) {
var button = getButton(event.target);
var player = button.querySelector("audio");
player.isPlaying = function() {
return player.paused === false;
}
if (player.isPlaying()) {
button.querySelector(".pause").style.display = "none";
button.querySelector(".speaker").style.display = "inline-block";
}
}
</script>