I need help figuring out how to make a fixed image on my page trigger a random sound track when hovered over. The sound could be one of five different tracks.
Here is the HTML for my image:
<img src="images/Airplane.png" class="Airplane-photo">
Below is the CSS code I am using:
.Airplane-photo {
position: fixed;
z-index: 1;
height: 200px;
bottom: 0px;
right: 0px;
}
All of the sound tracks are in MP3 and OGG formats. I have already looked at this resource but it doesn't provide the solution I'm looking for: https://css-tricks.com/play-sound-on-hover/
If anyone knows of a way to achieve this, please let me know!
Thank you in advance