PMP Computer Solutions Menu Map

Support

Search our FrontPage Support Area
FrontPage Support Area Site Map


How to use JavaScript to insert the proper sound tags

  1. Open the page (or create a page) in FrontPage Editor where you want the sound.
  2. Position your cursor where you want to place the tags.
  3. Click on Insert, HTML Markup.
  4. Paste the following code within the HTML Markup:

<script language="JavaScript">
<!--
if(navigator.appName.indexOf("Microsoft",0)>=0)
{
document.write("<BGSOUND SRC=sound.mid LOOP=infinite>")
}
else
{
if(navigator.appName.indexOf("Netscape",0)>=0)
document.write("<embed src=sound.mid hidden=true align=baseline border=0 width=128 height=128 autostart=true autoplay=true>")
}
//-->
</script>

  1. Click on OK.

Notes

  1. Substitute the name of your midi file in place of "sound.mid" above.
  2. If your midi file is not in the same directory as your HTML file, then prefix the sound file with the relative or full path to the file.

Peter Perchansky


Send mail to [email protected] with questions or comments about this web site.
Copyright © 1996, 1997 PMP Computer Solutions, 211 South 5th Street, Womelsdorf, PA 19567-1426. All rights reserved.
Art work by
Carl Jagt of Restore THIS!
Last updated: Monday June 09, 1997 12:33 -0400