You may have music automatically play in the background of a web page, or allow a visitor to control whether or not the music plays.
- Upload the music file to your site via a Multimedia page.
NOTE:We recommend only using .mp3 files as this is a very common file type. Other file types may not work, depending on your visitor’s browser and file support on their computer.
- View the Multimedia page, right-click the link to the file and choose ‘Copy Shortcut’ or ‘Copy Link Location’. You will need this address in a later step.
- Edit the page you want to play the music on.
-
Background Music
- On the Easy Editor toolbar click on the ‘HTML’ button.
- At the very top of your content, type in the following code:
[EB_CODE][/EB_CODE]
If you want the music to autoplay or loop, you can add the ‘autoplay’ or ‘loop’ attributes. You can also add the ‘controls’ attribute to display volume and play/pause controls. Here is an example with all three enabled:
[EB_CODE][/EB_CODE] - Make the following changes to the code you just pasted in the above step:
Delete YOURFILENAMEHERE.mp3 and paste (CTRL+V) the address you copied for your music file.
-
- Save your changes by clicking the green ‘Save’ button at the top right and bottom of your edit page. View your page.
If Your Music Does Not Play
- Ensureyou have the address of the music file correct by pasting in theaddress into your browser. If your browser prompts you to save thefile, you have the correct address.
- Most browsers require aplugin installed so that they know how to handle the media file. Checkfor any messages regarding installing a plugin.