music

How to put a background music in web by netscape composer?

                I have done some web by frontpage and can listen the music by I.E.
                whereas it is no music using Netscape ....
mwhuenAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
compmaniaConnect With a Mentor Commented:
<bgsound src="sound.***" loop="1" autostart="true">

Will work on both.
0
 
unseensunCommented:
If you know HTML the code for putting music on a webpage is

This is for IE browsers
<bgsound src="newyork.mid" loop=infinite>


This is for Netscape
<embed src="newyork.mid" width="144" height="15" autostart="true" loop="true" controls="smallconsole">

embed is the tag that allows you to put music in the page
the src attribute lets you link to the specified music file
width, height  are the width and height of the music console
autostart (true / false) is weather or not the music will come up automatically when you visit the page or weather the user has to push play first.
Loop is weather or not the music will ever stop playing.
controls sets the type of console you will have on your webpage to have the music playing.

if you dont want the console on your page just leave out the height width and controls attributes

in my code I have newyork.mid
but in your code you may want to put the link, file directory or location of your music file, inluding the file name.
also, if you are using certain kinds of music files such as WAV or RealAudio
you wont hear the music unless you have the proper Netscape Plugins.

I hope this helps.
Come back if you have more questions
0
 
mwhuenAuthor Commented:
how can I write a html which contain music files, that both browser can play the music?
0
 
unseensunCommented:
unseensun changed the proposed answer to a comment
0
All Courses

From novice to tech pro — start learning today.