Synchronized Audio

Applet AudioSyncApplet1 plays a short audioclip when a document.applets[#].playNow() statement is issued in Javascript. Replace # by the ordinary number of the applet on the page (first applet has number 0). In this example the above statement is issued in the ONMOUSEOVER handler of the <AREA> tag mapping the whole image on the right side and in the ONCLICK handler of the button.
Parameters:
"audio" -relative URL of the audioclip with respect of the applet's code base.
"background" background color of the applet as a triplet of comma separated r,g,b numbers from interval [0,255]. Choosing height of the applet 1 and the background color equal to the background color of the document makes the applet invisible.

When using Netscape Navigator 4.5x the playing of the clips may be signifcantly delayed after the events that cause it. For explanation see this page .


Download!