Thursday, February 21, 2008

號外B:進階設定 - 免費即時翻譯

今天同學對Google 提供網站內容即時翻譯甚感興趣,所以在此順帶也記錄下來。方法也很簡單,大家先到 http://translate.google.com/ 的 Tools 中( http://translate.google.com/translate_tools?hl=en&sl=zh-TW ),在Step 1 選定您Blog中的主要語文,然後將Step 2 的HTML程式碼複制起,再在Blog中使用網頁原素 Page Element,以 HTML/Javascript 的 widget 將以上HTML程式碼加入您的 blog。



使用時只須把選單拉下選擇翻譯語文,Google Translate 便會自動對網其進行翻譯。

號外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