One issue I'm facing is that a small beep sound should play when clicking on a link, but it gets cut off unless the click is held down.
<script>
var beep = new Audio();
beep.src = "audio/select.mp3";
</script>
<div class="frame">
<div class="upperband">
<img src="images\Upper bar.png" alt="Upper overlay">
</div>
<div class="outer">
<div class="header">Maddie's School Site_</div>
<div class="wrapper">
<nav>
- home<br>
<a href="made.html" onmousedown="beep.play()">- Stuff I Made<br></a>
<a href="wrote.html" onmousedown="beep.play()">- Stuff I wrote<br></a>
<a href="whothehell.html" onmousedown="beep.play()">- Who the hell am I?<br></a>
</nav>
<div class="right">
<div class="shadowFX">
<img src="images\Website_Sprite_ghost.svg" alt="avatar">
</div>
</div>
</div>
</div>
</div>
I apologize if the code looks messy. I've only been in web programming school for a month and we haven't covered JavaScript yet, so my understanding is limited.