The NanoGong Applet with Various Parameters

Changing the Appearance of The NanoGong Applet

The NanoGong applet shown above does not have three of the usual components on its interface. They are the save button, speed buttons and the audio level indicator. Hiding of any these components (also the record button) can be achieved by setting the corresponding applet parameters. The color of the applet is changed using the color applet parameter. The time display is enabled and will be shown if you hold your mouse over the timeline. Here is a HTML page which can be used to display the NanoGong applet as shown above.

<html> <body> <applet id="applet" archive="nanogong.jar" code="gong.NanoGong" width="95" height="40"> <param name="ShowSaveButton" value="false" /> <param name="ShowSpeedButton" value="false" /> <param name="ShowAudioLevel" value="false" /> <param name="Color" value="#C0E0FF" /> <param name="ShowTime" value="true" /> </applet> </body> </html>

The NanoGong Applet with a Recorded Voice

The above NanoGong applet loads a pre-recorded voice file from a website. The location of the voice file is given by an applet parameter named "SoundFileURL". In this particular case, the value of the parameter is the relative URL of the file in the website. Here is a HTML page which can be used to load the sound file as shown above.

<html> <body> <applet id="applet" archive="nanogong.jar" code="gong.NanoGong" width="180" height="40"> <param name="SoundFileURL" value="nanogong_param/sentence.wav" /> </applet> </body> </html>

More Examples - Animal Corner

Note: If you use Internet Explorer you may have to click once to activate the applet and then click on the play button to play the sound because of the security setting of the browser.

Meow
Baa
Cluck
Moo
Neigh
Oink
Quack
Woof