Adding Background Music to Your Website
Step #1: Upload Music File
This is an example of a file that I have uploaded.
Click Publish |
|
Step #2: Add HTML
<embed src="#">
<noembed> &amp;lt;bgsound src="#" autostart="true" loop="true" hidden="true" volume="30"&amp;gt; </noembed>
<noembed> &amp;lt;bgsound src="#" autostart="true" loop="true" hidden="true" volume="30"&amp;gt; </noembed>
Step #3: Get the Music's weblink
Step #4: Paste Music's weblink into HTML
Now, go back to the custom HTML element in your weebly site and replace the # in the code with the web address you copied.
It should look something like this....... |
<embed src="http://artsaboveclouds.weebly.com/uploads/3/8/7/9/3879573/vain.mp3">
<noembed> &amp;amp;lt;bgsound src="http://artsaboveclouds.weebly.com/uploads/3/8/7/9/3879573/vain.mp3" autostart="true" loop="true" hidden="true" volume="30"&amp;amp;gt; </noembed>
<noembed> &amp;amp;lt;bgsound src="http://artsaboveclouds.weebly.com/uploads/3/8/7/9/3879573/vain.mp3" autostart="true" loop="true" hidden="true" volume="30"&amp;amp;gt; </noembed>
Click Publish
Code Explained
<embed src="http://artsaboveclouds.weebly.com/uploads/3/8/7/9/3879573/vain.mp3">
<noembed> &amp;amp;lt;bgsound src="http://artsaboveclouds.weebly.com/uploads/3/8/7/9/3879573/vain.mp3" autostart="true" loop="true" hidden="true" volume="30"&amp;amp;gt; </noembed>
<noembed> &amp;amp;lt;bgsound src="http://artsaboveclouds.weebly.com/uploads/3/8/7/9/3879573/vain.mp3" autostart="true" loop="true" hidden="true" volume="30"&amp;amp;gt; </noembed>
HTML is the computer language that creates webpages.
To put music in your site you have to "embed" it. To do this we use the tag <embed>. Inside of that tag we are telling the computer to search for the webpage that the music is located on <embed src="http://www.website.mp3"> Next we are setting the music as background music "bgsound" and searching for it src="website" Next we are telling the computer to play it as soon as someone goes to the website autostart="true" Next we are telling the computer to replay the song over and over again loop="true" Next we are telling the computer what volume level we want the music to play at volume="30" Lastly, we are closing our tags </noembed> |
|
|