You are here:  NetStrider » Tutorials » HTMLRef » Commands » BGSOUND «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <BGSOUND> Command next

Command Syntax:

<BGSOUND command parameters>

Plays a background sound file on the page if the user's browser is audio capable or has an appropriate plug-in.

The command is only supported by the Internet Explorer browser at this time.

See also:  <EMBED>, <SOUND>

Command Parameters:

src="URL"

Defines the URL at which the background sound file can be found by the browser.

loop="integer|infinite"

Where

  • an integer -
    defines the number of times the sound file should replay.  ( An integer value of -1 is equivalent to value infinite. )

  • infinite -
    causes the sound file to replay continuously.
     
Example:

<BGSOUND src="entertainer.mid" loop="10">

  • Loads the sound file entertainer.mid.

  • Plays the sound file 10 times.

  • The sound file will replay if the page is reloaded.

  • The browser must be audio capable or have the appropriate plug-in.

  • The host file server on which the HTML code is mounted must be MIME encoding the audio file type .MID.
Return to Section A:D


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz