Thursday 21 February 2008

號外A:進階設定 - 背景音樂

課堂上有同學問如何加入背景音樂 Background Music。 要做到這一點,其實很簡單,更有很多不同的方法你可以使用。 但最簡單的方法添加背景聲音是使用網頁原素 Page Element,以 HTML/Javascript 的 widget 將第三方音樂功能加入您的 blog。



e.g.
<embed width="200" src="http://yoursite.com/yourmusic.mp3" autostart="false" loop="false" height="50"></embed>

"http://yoursite.com/yourmusic.mp3" 是音樂的url


這個Blog新加入的音樂設定是
<embed width="200" src="http://www.i-freeware-download.com/AcceleratedIdeas/MP3/ORIENTAL/DistantShores_A007(cr).mp3" autostart="true" loop="false" height="50"></embed>

你可以改變一些參數,以滿足不同的需要:
-autostart: set to "true" to make the music begin as soon as the page is loaded, or "false" to allow the user has the option to press the play icon

-loop: set to "true" to have the music play forever, or "false" so that it plays once.

你可以連結mp3, .mid or .wav 音樂檔案。 但是,你必須意識到版權限制,並確保你在適當的許可下使用!

這裡有兩個無版權音樂網站,你可以試用:
Free Music Tracks
FreePlay Music

No comments:

Post a Comment