How to make music at an input on the website

How to make music at an input on the website

Digital Hits: 83

There are different opinions on the mood music which is built in pages of websites. Especially carefully it is necessary to treat the background music which is not giving to the visitor opportunities of its shutdown. Nevertheless, if you made the decision to add a background mood music, that is several ways to make it.

It is required to you

Instruction

1. For an insert in the page of a musical background in such a way which will work in the majority of the types of browsers which are most extended today it is the best of all to use the object tag. The block of such code can look, for example, so:
<object width= "" 0"" height= "" 0" of" align= "" of Center"">
<param name= "" movie"" value= ""BGsound.wav"">
<embed src= ""BGsound.wav"
autostart= "" true"
width= "" 0"
height= "" 0"
align= "" of Center"
type= "" audio/mid"
pluginspage= ""http://www.macromedia.com/go/getflashplayer"">
</object> Here in two places specified a name of the sound file (BGsound.wav) which will reproduce the browser - you need to replace it with the. Zero width and height of the player, but if you want to display it in the page, then replace zero with the necessary sizes are also twice set. Autosound playback parameter (autostart= "" true"") will force the browser to begin playing of the file right after loading of the page.

2. The full code of the page assembled will look so: <html>
<head>
<title> Background music </title>
</head>
<body>
<object width= "" 0"" height= "" 0" of" align= "" of Center"">
<param name= "" movie"" value= ""BGsound.wav"">
<embed src= ""BGsound.wav"
autostart= "" true"
width= "" 0"
height= "" 0"
align= "" of Center"
type= "" audio/mid"
pluginspage= ""http://www.macromedia.com/go/getflashplayer"">
</object>
</body>
</html>

3. There is also an alternative way. On the website http://flv-mp3.com/ru you can "collect" in a dialogue mode the HTML-code a flash player for an insert in pages of the website. On the course of this process it will be necessary to specify the Internet address of the MP3 file which should become a source of a background music. Music and the player will be integrated by the software of this service in one file. You can or upload it to the site, or to leave on the server of this service and to load in the pages from there.

Author: «MirrorInfo» Dream Team

Print