Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

BBS: Re: Using .wav files - June 29, 1998 at 03:42:14

You are here: irt.org | BBS | Re: Using .wav files [This BBS is closed]

Posted by Martin Webb on June 29, 1998 at 03:42:14:

In Reply to: Using .wav files posted by Mike on June 27, 1998 at 12:35:22:

: I want to have a couple of push buttons on my web page where
: visitors can push them and hear a short extract of music.
: If I save the sound clips as .wav files
: how can I incorporate these files into my web page
: Any help gratefully appreciated


Take a look a the answer to the question "How can you control midi or wav files using JavaScript?" at:


The answer can be adapted by using the onClick event handler of a form button field:

onClick="playSound ()"

This only works in Netscape - I've yet to work out the solution for Microsoft Internet Explorer.

Although the anser looks easy - there is a lot more to it than just document.firstSound.play (false)

Take a look at the article "Writing a midi hifi system in JavaScript" at http://www.irt.org/articles/js090/index.htm, then take a look at the source code of the midi hifi working example.

You are here: irt.org | BBS | Re: Using .wav files [This BBS is closed]

©2018 Martin Webb