Add music to your 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 page, and I don't like that code too long. I just tidied up a bit. All I've joined here is the single. (The type of the single loop). Add multiple background music. The code is longer, I did not go to toss, (in fact, toss a method, did not get out, give up);

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, so the code is not visible to the player.

You can also add some code in the middle.

- hidden= "True" indicates hidden playback. The appearance of the player is not displayed. To be displayed. Replace "true" with "false" so that the default is to minimize playback. If you want to display the size of the player in detail. Plus height= "Height value" width= "width value" is possible.


-------autostart= "True" indicates that the current page load is actively playing itself, 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 to be a link to the song, here is the pit father. I want to join 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 era of cloud computing, I want to directly through the cloud to save. And then publish the chain, and then I tried some of the network disk, also not suitable. Then yesterday I was in the Hexo blog, I was there in the picture is through the seven furcated Hoof saved, and then I want to not be able to use seven cows to save music, and then publish the chain, and I quote the way the picture, finally succeeded, strongly recommended seven cows, speed is very fast. It's good to be a cloud platform where we usually store some pictures and music.

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 http://blog.csdn.net/lin_miao0818/article/details/3381851 the content of this blog, which is written in very specific. But the method that joins many, I did not succeed, still need to improve, only has the unceasing exploration, such ability unceasing progress.

Add music to your Web page

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.