<bgsound src="../sounds/midi/p_presto.mid" balance=0 delay=0 loop=-1 volume=0>
Introduction to HTML
Audio
Background Embedded Audio Files
Copyright © 2000 - 2002 Randy D. Ralph.  All rights reserved.

  RETURN Forms   Course Contents  
In place May 27, 2000.

Playback of audio files in the background of a website to be viewed using either the Internet Explorer browser or the Netscape browser is accomplished with both the <BGSOUND> command placed within the <HEAD> Document Segment and the <EMBED> command within the <BODY> Document Segment as shown below -

Internet Explorer Component
in the Document Head Segment
Netscape Component
in the Document Body Segment
<HEAD>

  <NOEMBED>
    <BGSOUND 
     src="../sounds/midi/p_presto.mid" 
     balance=0 delay=0 loop=-1 volume=0>
  </NOEMBED>

</HEAD>
<BODY>

  <EMBED 
   src="../sounds/midi/p_presto.mid" 
   autostart=true hidden=true volume=75 loop=true>

</BODY>

Yields -

Toccata in A, Presto by Paradisi playing in the background.


You are here:  Intro to HTML   »   Audio   »   Embed   »   BGSOUND/EMBED   «