Home Site Map Gallery Your Two Cents Service Order

               

Home HTML Basics Headlines Paragraphs Links Free Links Mail-to Bold Italic Font Color Font Size Background Image Graphics Background Color Aligning Text Aligning Images HTML -Adding Audio HTML - Frames HTML Tables Meta Tags Forms Mouse Over Mega Search Browser Support

Get Your Free E-Mail Account


WEB DEVELOPMENT
AID


Isn't it time you
updated your site?

 

 

        How to add sounds to your web site

.wav & .mid (midi) files



OK if you want the sound to load up automatically and be invisible add this: <EMBED SRC="yoursound.WAV" WIDTH=1 HEIGHT=1 AUTOSTART=TRUE HIDDEN=TRUE>

If you want to see the sound file (have all controls) do this: <EMBED SRC="yoursound.mid" width="145" height="62" autostart="true">

And if you just want a small control use this: <EMBED SRC="yoursound.mid" height=15 width=140 controls="smallconsole" autostart="true">

Note: Change the file to whatever it is (from a .mid to a .wav sound) and where it say's autostart you can, put autostart="false". Play around with it to get the hang of it.

 

For Real Audio files

    1.Copy your encoded files (files with the .ra, .ram, .rm or .rpm extension) to your World Wide Web server.

    2.Use a text editor (such as Notepad or SimpleText) to create a metafile containing a URL to your file.

    For example, the contents of your metafile should be in the following form:

 

http://hostname/path

    where hostname is the name of your World Wide Web server. For example: www.real.com

    3.Save your metafile as a text using a .ram file extension.

    4.In your HTML document, reference the metafile in a hyperlink. For example:

 

<A HREF="filename.ram"> <A HREF="http://hostname/file.rm">

    You can use relative or complete paths. If you use complete paths, you must include both the hostname and the complete path. For example:

 

<A HREF="http://www.real.com/home/welcome.ram">

    5.When a user clicks on the link, the streaming file(s) begin to download. The RealPlayer begins playing after a few seconds; it does not need to wait for the entire file to be downloaded.

     

    The src attribute supplies the URL of a sound file in WAV format, suitable for playing on a PC. The loop attribute provides the number of times to play the audio clip. You can specify any positive value or the word infinite, which causes the audio to loop until the user leaves the page.

    Thus, you might put something like <bgsound src="your.wav" loop=infinite> in your document. As long as your document is being displayed, the audio is played. Netscape does not support the <bgsound> tag, but does support the <embed> tag.

    You can use it to embed an audio object in your document, which Netscape will play for you. To embed an audio file and have it play in the background, use this tag: <embed src="your.wav" hidden=true autostart=true loop=true>

    This tells Netscape to load the audio object but not display it to the user, to start playing when the page is loaded, and to loop the sound forever. If you set hidden to false, Netscape will present the user with a set of controls to manage the audio playback. Setting autostart to false will prevent the audio from playing until the user explicitly starts it. Finally, you can set loop to false to play the sound only once, or to a number for a specific number of loops.

     

     

     

    HTML Basics ] Headlines ] Paragraphs ] Links ] Free Links ] Mail-to ] Bold Italic ] Font Color ] Font Size ] Background Image ] Graphics ] Background Color ] Aligning Text ] Aligning Images ] [ HTML -Adding Audio ] HTML - Frames ] HTML Tables ] Meta Tags ] Forms ] Mouse Over ] Mega Search ] Browser Support ]

 

Webdesign ] Banners and Graphics ] Promotional Services ] HTML Tutorials ] Consulting ] Hosting ] Domain Registration ] WIN PRIZES!! ]

OVER 28 MULTIPLEOVER
AOL Members Choice Award

AWARD WINNING SITES

 


Webmaster-at-Large:     webmasteratlarge@planetwebdesign.com  

Planet T-Shirt Logo
®PLANETWeBDESIGN TECHNOLOGIESº© 

  PO Box 22157  Knoxville, Tennessee 37933-0157

Telephone:    865-692-9253      FAX:    865-692-9247

PlanetWebDesign LogoCopyright © 1998, 1999, 2000 PLANETWEBDESIGN TECHNOLOGIES, Inc. All rights reservedBye Bye!!