On-line Guides

How To Guides






The JavaScript FAQ
Prev Home Next

Preloading Sound Files

Question: How do I preload a sound file?

Answer: In Netscape Navigator 3.0 and newer, as well as in Microsoft Internet Explorer 4.0 and newer, you can use the following EMBED tag to preload a sound file mySound.mid:

<EMBED NAME="mySound" SRC="mySound.mid" 
LOOP=FALSE AUTOSTART=FALSE HIDDEN=TRUE MASTERSOUND>
Then you can play the sound using the techniques described in the Playing Sound section.

JavaScripter.net. Copyright © 1999-2006, Alexei Kourbatov

The JavaScript FAQ
Prev Home Next


Mirrored with kind permission of Alexei Kourbatov Design by Interspire

AltStyle によって変換されたページ (->オリジナル) /