<br>當網頁中插入音樂時,要根據不同的後綴名,來寫不同的程式碼!下面面就是多種格式檔案的詳細使用程式碼。 <br>註: <br> "音樂檔案和地址"-待播放檔案的檔案名,前面帶上絕對路徑,或是本站的相對路徑。 <br> width_num-指定一個作為寬度的數字; <br> height_num-指定一個為高度的數字; 1.mid <br> <embed src="%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6%E5%92%8C%E5%9C%B0%E5%9D%80" type="audio/midi" hidden="false" autostart="true" loop="true" height="height_num" width="width_num"></embed> 2.mp3 <br> <embed controller="true" width="width_num" height="height_num" src="%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6%E5%92%8C%E5%9C%B0%E5%9D%80" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed> 3.avi <br> <embed src="%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6%E5%92%8C%E5%9C%B0%E5%9D%80" border="0" width="width_num" height="height_num" type="application/x-mplayer2"></embed> 4.flash <br> <embed src="%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6%E5%92%8C%E5%9C%B0%E5%9D%80" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="width_num" height="height_num" play="true" loop="true" quality="high" scale="showall" menu="true"></embed> 5.mpg <br> <embed src="%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6%E5%92%8C%E5%9C%B0%E5%9D%80" border="0" width="width_num" height="height_num" type="application/x-mplayer2"></embed> 6.mov <br> <embed controller="true" width="width_num" height="height_num" src="%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6%E5%92%8C%E5%9C%B0%E5%9D%80" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed> 7.rm <br> <object>" height="height_num"><br><param name="CONTROLS" value="ImageWindow"> <br><param name="AUTOSTART" value="true"> <br><param name="SRC" value="音乐文件和地址"> <br><embed height="高" width="宽" controls="ImageWindow" src="%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6%E5%92%8C%E5%9C%B0%E5%9D%80" type="audio/x-pn-realaudio-plugin" autostart="true" nolabels="0" autogotourl="-1"></embed></object> 8.上面的都是使用播放器的,如果只是想播放背景音樂的話可以使用如下簡單語句: <br> <bgsound src="%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6%E5%92%8C%E5%9C%B0%E5%9D%80" loop="1"> <br>loop後面是循環的次數,-1代表無限循環。</bgsound>