How To Make Music When You Enter The Site

Table of contents:

How To Make Music When You Enter The Site
How To Make Music When You Enter The Site

Video: How To Make Music When You Enter The Site

Video: How To Make Music When You Enter The Site
Video: MAKING MUSIC FOR FREE! | HOW TO MAKE MUSIC FOR FREE | AUDIOTOOL TUTORIAL 2024, April
Anonim

Opinions vary about music embedded in website pages. You should be especially careful with background music, which does not provide the visitor with the possibility of turning it off. However, if you've made the decision to add background music, there are several ways to do it.

How to make music when you enter the site
How to make music when you enter the site

It is necessary

Basic knowledge of HTML

Instructions

Step 1

To insert background music into a page in a way that will work in most of the most common types of browsers today, it is best to use the object tag. A block of such code might look like this:

<embed src = "BGsound.wav"

autostart = "true"

pluginspage = "https://www.macromedia.com/go/getflashplayer">

Here in two places is the name of the sound file (BGsound.wav) that the browser will play - you need to replace it with your own. Also, the zero width and height of the player are specified twice, but if you want to display it on the page, then replace the zeros with the required dimensions. The autoplay sound parameter (autostart = "true") will force the browser to start playing the file right after the page is loaded.

Step 2

The complete code of the assembled page will look like this:

Background music

<embed src = "BGsound.wav"

autostart = "true"

pluginspage = "https://www.macromedia.com/go/getflashplayer">

Step 3

There is also an alternative way. Online https://flv-mp3.com/ru you can in the dialog mode "collect" the HTML-code of the flash player for insertion into the pages of your site. During this process, you will need to specify the Internet address of the mp3 file, which should become the source of background music. The music and the player will be combined by the software of this service into one file. You can either upload it to your site, or leave it on the server of this service and load it into your pages from there.

Recommended: