Find Your Stuff

Google

Friday, March 16, 2007

订阅博客,精彩内容不再错过:阅读器订阅 邮件订阅

为博客添加(帖子)背景音乐

共同学习,共同进步!

http://www.esnips.com/web/Entainment

How to play music on a website, blog or MySpace with HTML music codes.
There are several ways to place music, midi's, mp3 and wav files on a webpage. First you need to know the name of the music file you wish to use. If you don't yet have any music files, you can find free music and sounds to download including christian music, 80's music, pop, rock and many others on our music sounds page.

Music on choice.
The first html music code gives your visitor the choice if they want to hear the music or not.
<a href="yourmidname.mid">Click here to play music </a>
在本机播放新结婚时代
Make sure you upload the music file to your server. Your visitor will need something to play the music on such as Real Player or Windows Media Player for the music to play.

Website Music plays automatically on page load. This is cross browser compatible.
Place this code in the <head> of your html document so music starts automatically when the page loads. Your visitor has no choice to hear it or not and there is no option to turn it off. Using the "embed" command makes your music compatible with Netscape.
显示播放器形式播放音乐,用户可以停止或者暂停音乐播放,会默认一个播放器尺寸大小:
<embed src="your mp3 url"><embed>

完全以用户不可见形式播放,用户无法暂停或者停止音乐播放,除非关闭窗口:
<bgsound src="your mp3 url">

To embed music on your website with a shut off button.
You can embed music into your page so it starts automatically when someone views your page and have a small image where your visitor can turn it off.
Place the html music code where you want the button to appear on your page.
显示播放器形式播放音乐,用户可以停止或者暂停音乐播放,自定义播放器尺寸大小,可以选择显示播放、暂停、快进等按钮:
<embed src="yourmusic.mid"
width=25 height=25 autostart=false repeat=true loop=true> </embed>
Embed music with console.
Instead of the button, you can have a small console with on and off switches on your page such as this one below.
<embed src="yourmusic.mid"
width="140" height="40" autostart="false" loop="FALSE">
</embed>

Music Parameters.
To make the music play automatically the parameter is Autostart="TRUE"
You can put "FALSE" instead of "TRUE" so the person visiting your page will have to click on the play button for it to start.
webpromotion.liu@gmail.com
您的支持是我们努力的动力!欢迎留言

0 Comments:

Post a Comment

<< Home