For the chatbox on the new DFTBA Forum I needed to implement a method for a Javascript function to trigger an audio notification. I thought about using HTML5 but realized that not all the target browsers would be compatible so I ended up going for a Flash based version. I’m making this available for free download including all source and a demonstration file.
The player can trigger 14 different audio notifications all taken from Mac OS/X Snow Leopard.
They can be triggered in less than a line of javascript in your code and can be triggered from onclick, onkeypress etc. or just standard JS
The .zip download contains all the .aiff files used as well as the pre-compiled .swf, source .fla and a html demo file
You can demo the applet and all the sounds here
You can download the zip file here