Add music to a Web page

Source: Internet
Author: User

Recently in a Web page, for a person with obsessive-compulsive disorder, want to insert music in the Web page (as background music), and then their own Baidu a lot of information; here's a summary:

The first step:

We need to add some code to the Web page; I don't like the code that's too long; I've put it all together, I'm adding a single, (the one with the single loop), adding multiple background music, the code is longer, and I'm not going to toss it, (in fact, it's a way of tossing and dropping);

The first type of code:

<embed src= "http://img.xiaonei.com/photos/20060603/1510/orig51097.wma" autostart= "true" Loop=infinite width=0 Height=0>

The link in the middle is the link of the song;

<embed src= "Http://whjkm.qiniudn.com/%E6%9C%80%E9%87%8D%E8%A6%81%E7%9A%84%E5%B0%8F%E4%BA%8B.mp3" width= "0" height= "0" border=0 autostart= "Ture" loop= "true" ></EMBED>

Volume indicates the volume, loop=infinite means loop playback, does not stop. The width and height behind is the size of the player, and this code is not visible to the player.

In the middle can also add some code;

- hidden= "true" means hide play, that is, do not show the player's appearance, to want to display, "true" to replace "false", so that the default is to minimize playback, if you want to display the size of the player, plus height= "Height value" width= " Width value "is OK.
-------autostart= "True" indicates that the current page load is automatically played, if you do not want to play to autostart= "false";
------loop= "true" means that the music is played in an infinite loop until the current page is closed, and you do not want the loop to be replaced with loop= "false" to OK;

Step Two:

Here we have added the code, and then we need is a link to the song, here is also the pit dad, I want to add the song did not find outside the chain, I would like to directly make a chain, Baidu has a lot of methods, are not applicable, I think now is the cloud computing era, I would like to directly through the cloud to save, and then Then I tried some network disk, also not suitable, and then yesterday I in the Hexo blog, I was in there the picture is through seven furcated hoof preservation, and then I think can use seven cows to save music, and then release the chain, and I quote the way the picture, finally succeeded, strongly recommended seven cattle, The speed is also very fast, as we usually store some pictures and music of the cloud platform is very good. Then make the song outside the chain, and then we put the above code for our own production of music outside the chain, and then we can try the effect ~;


Here refer to the content of http://blog.csdn.net/lin_miao0818/article/details/3381851 this blog, which is written in very detailed, but that add a number of methods, I did not succeed, still need to improve; only constant exploration , so as to make continuous progress.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.