Basic HTML version of Foils prepared 2 October 98

Foil 14 JavaScript Plug-in Interaction Example

From Netscape's LiveConnect Technology CPS640 Internet and Multimedia Technologies -- April 98. by Marek Podgorny,Nancy McCracken


<head> <script language="JavaScript">
function doNothing() {} // A dummy function
function playSound ( soundName )
{ plugin = document.plugins[soundName];
window.status = soundName
if ( plugin != null )
{ plugin.StopAll();
plugin.play(false);
setTimeout('plugin.stop()', 2000); } }
</script>
<title> Sound Sampler </title></head> <body>
<h2> Point to an instrument to hear how it sounds</h2>
<embed src="keyboard.aiff" name="keyboard"
hidden=true volume= 100% autostart=false> ....
<a href="doNothing()"
onMouseOver="playSound('keyboard'); return true;">
<img src="keyboard.gif" border=0> </a> ....
</body></html>



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998