[X]

Sound On Mouseover

images and media 1998 partly

Plays a click or beep when the pointer crosses a menu item.

In 2026: Partly works. Browsers block audio until the visitor has interacted with the page, so the first hover is silent and every hover after a click is fine.

Where it came from: Free script archives, roughly 1998. Needed the LiveAudio plugin to work in Netscape. MDN

<audio id="sfx" src="https://xbawx.com/snd/assets/59/59053cb6dbb43174e264d577ae4d386a8e94f762.wav"
       preload="auto"></audio>

<a href="/" onmouseover="playSfx()">Home</a>
<a href="/links.html" onmouseover="playSfx()">Links</a>

<script language="JavaScript">
function playSfx() {
  var a = document.getElementById("sfx");
  a.currentTime = 0;
  var p = a.play();
  if (p && p.catch) p.catch(function () {});   // blocked until first click
}
</script>
sandboxed demo · breaks nothing but itselfrestart

More in images and media

all 5 in images and media › · the whole library ›