Warning: Playing audio on usual site navigation actions like hover or clicking will most certainly annoy your site's visitors and drive them away. That said, there are some clients who insist on this and hence this article.
Here's how code provided in the above sites can be implemented in WordPress.
Works in: Firefox, Chrome, Safari, Opera, IE9+.
Create a .ogg version of your mp3 sound at Media.io.
Upload mp3 and ogg files to a directory, say /sounds under your site's root.
Create a file named say, load-audio.js in js directory under the active theme having this code:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.