1 | <head> <script language="JavaScript"> |
2 | function doNothing() {} // A dummy function |
3 | function playSound ( soundName ) |
4 | { plugin = document.plugins[soundName]; |
5 | window.status = soundName |
6 | if ( plugin != null ) |
7 | { plugin.StopAll(); |
8 | plugin.play(false); |
9 | setTimeout('plugin.stop()', 2000); } } |
10 | </script> |
11 | <title> Sound Sampler </title></head> <body> |
12 | <h2> Point to an instrument to hear how it sounds</h2> |
13 | <embed src="keyboard.aiff" name="keyboard" |
14 | hidden=true volume= 100% autostart=false> .... |
15 | <a href="doNothing()" |
16 | onMouseOver="playSound('keyboard'); return true;"> |
17 | <img src="keyboard.gif" border=0> </a> .... |
18 | </body></html> |