It plays only once. In order to hear it again, go back and reenter this page.
Make sure the file PlaySound.class after downloading is 1,123 bytes in size. Also make sure your server is configured to serve .class files as MIME type application/octet-stream.
People typically place applets in a classes directory at the same level as the HTML document for which the applet is being served from. This implies configuring the applet tag with a value of codebase equal to classes and code as PlaySound.
The applet tag for the above applet looks like:
This applet is Freeware, no warranty is implied in any sense. Use at your own risk
The Internet Conveyor Ltd.
Downloading and Using PlaySound
To use the applet: download it, place it in an appropriate location and add the applet tag to your document. <applet codebase="classes" code="PlaySound" width=1 height=1>
<param name=sound value="classes/zzzz.au">
</applet>
The audio file should be a Sun u-Law type of recording.
Feedback
Let me know where you are using the applet so I can set up a page of links. Questions or comments to: John Criswick by e-mail to criswick@conveyor.com.