Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>bgsound()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
BgSound()
Returns/writes HTML Background Sound tag <BgSound SRC... >
---------------------------------------------------------------------

Syntax:

  BgSound( <cWavSrc>, [<cLoop>] )  --->  cString

Arguments:

  <cWavSrc> is a character string URL of a sound file.

  [<cLoop>] is a character string value for the loop counter.

Returns: A character string consisting of the generated HTML tag.

Description:

  Generates an HTML Background Sound tag.

  The generated string is always returned. The string will be written
  to standard-out depending on the value of StopWrite().
  The default StopWrite() value is FALSE. Setting the StopWrite() value
  to TRUE will suspend the write to standard-out.

  cWavSrc identifies the URL of a sound file to play when the  HTML
  page loads.

  [cLoop] The sound can be played a set number of times or continually.
  The loop option values are:
  Options are 1,2,3... or INFINITE( default ).

Examples:

  Play a sound 2 times after the page loads.
  BgSound( "MySound.Wav", "2" )

  Play a sound continually while the page is being viewed.
  BgSound( "Sound2.Wav", "INFINITE" )

Alternate:

  htmlWrite( '<BgSound SRC="YourSoundFIle.wav">' )

Caution:  MSIE only ( use BgSound with an <EMBED ... > tag for Netscape )

Files: Library is ClipX.Lib

Online reference:  Mikodocs Guide To HTML - Background Sound

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson